[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A new boot code for Alex Freed's Pseudodisk ][...
On Jan 31, 10:51 am, Alex Freed <alex_n...@mirrow.com> wrote:
> The big problem with my design is that you can't swap the simulated
> floppy on-the-fly.
I don't like to switch off/switch on my computer each time I want to
boot a new image.
Why don't you add an entry point in the rom code with something like
that:
JSR $FF58 ; get slot
TSX
LDA STACK,X ; high $Cx??
STA AD+2
ASL ; slot*16
ASL
ASL
ASL
TAX ; index
STA SLOT16
STA P_UNIT
LDA #08 ; AVR command: change origin
STA PD8CMD,X
LDA #$AA ; image_start_sector=0
STA PD8CMD,X
AD JMP $Cx00 ; reboot (SDBOOT or Beautiful Boot)
JM