Posted By
gerliczer on 2017-01-14 15:48:50
| Re: VB interrupt. How do you get it to trigger?
I'm not quite sure what you are trying to do Stinaris, but this code
org $1001-2 dw $1001 dw nextln, 2017 ; second word is line number db $9E if start > 9999 db "0"+start/10000 endif db "0"+(start/1000)%10,"0"+(start/100)%10,"0"+(start/10)%10,"0"+start%10,0 nextln db 0,0 start sei sta $FF3F lda #$FF cmp $FF1D bne *-3 lda #4+19*8 sta $FF0B lda #2 sta $FF0A asl $FF09 lda #lo(irq) sta $FFFE lda #hi(irq) sta $FFFF cli jmp *
irq asl $FF09 inc $FF19 ldx #0 loop lda $0801+000,x sta $0800+000,x lda $0801+040,x sta $0800+040,x ... imagine the rest here lda $0801+760,x sta $0800+760,x inx cpx #39 bne loop dec $FF19 rti finishes copying quite swiftly. Code was written in Csabo's Plus4IDE. Copying starts five character rows before screen end. And if there is nothing in the ROM that you need to use no matter what in your program, then you're better off paging it out.
|