Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)

Cold boot from software ?

News,announcements,programming,fixes,game patches & discussions.
Post Reply
User avatar
exxos
Site Admin
Site Admin
Posts: 28848
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Cold boot from software ?

Post by exxos »

Anyone know how to do a cold boot from software ?
czietz
Posts: 587
Joined: Sun Jan 14, 2018 1:02 pm

Re: Cold boot from software ?

Post by czietz »

Clear memvalid and resvalid (https://freemint.github.io/tos.hyp/en/bios_main.html), jump to the beginning of TOS.
User avatar
exxos
Site Admin
Site Admin
Posts: 28848
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Cold boot from software ?

Post by exxos »

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 ?
czietz
Posts: 587
Joined: Sun Jan 14, 2018 1:02 pm

Re: Cold boot from software ?

Post by czietz »

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.
Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”