Cold boot from software ?
-
exxos
- Site Admin

- Posts: 28361
- Joined: 16 Aug 2017 23:19
- Location: UK
Cold boot from software ?
Anyone know how to do a cold boot from software ?
-
czietz
- Posts: 586
- Joined: 14 Jan 2018 13:02
Re: Cold boot from software ?
Clear memvalid and resvalid (https://freemint.github.io/tos.hyp/en/bios_main.html), jump to the beginning of TOS.
-
exxos
- Site Admin

- Posts: 28361
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Cold boot from software ?
That seems to bring up the TOS206 RAM test each time now, so that seems to be working..
Though I am not really sure how to do the jump as this is from hisoft basic..
What I can do is call asm code, but I no idea about that, d.m.l wrote the asm stuff for me for GB6. Also "start of TOS" would depend on 206 or 104 being run ? so really needs to take that into account.
But if I know the hex codes for the instructions to run, I can poke those into RAM somewhere and call that location from hisoftbasic... but anyone know how to do this and give me the codes to poke ?
Though I am not really sure how to do the jump as this is from hisoft basic..
What I can do is call asm code, but I no idea about that, d.m.l wrote the asm stuff for me for GB6. Also "start of TOS" would depend on 206 or 104 being run ? so really needs to take that into account.
But if I know the hex codes for the instructions to run, I can poke those into RAM somewhere and call that location from hisoftbasic... but anyone know how to do this and give me the codes to poke ?
-
czietz
- Posts: 586
- Joined: 14 Jan 2018 13:02
Re: Cold boot from software ?
I have no idea what one can do or cannot do from Hisoft Basic. But you can simply call the beginning of TOS like you would call any assembler function. Don't worry about parameters passed on the stack; the stack will be reset anyway during cold-boot. Be sure to switch to supervisor mode first. (But, then again, you would not be able to clear memvalid and resvalid from user mode, anyway.)
To get correct address to call, read the longword from memory address $4.
To get correct address to call, read the longword from memory address $4.
Who is online
Users browsing this forum: ClaudeBot and 6 guests