Badwolf wrote: Mon Dec 12, 2022 4:26 pm
EDIT: One thought, does your firmware allow caching of the TOS range?
ummmm. not sure. I know Anders patched stuff to cahe ST-RAM, but not sure if that included ROM.. Will have a look.
This is the routine it runs anyway.
Basically if TP_12 is enabled, it just jumps to testzon8 and just outputs the TTram amount without doing anything else.
Code: Select all
testzone:
moveq.l #0,d0
#if !TP_12 /* SKIP_RAM */
move.l memtaddr,d1
cmp.l memtbot,d1
bcs.s testzon8
cmp.l memtend,d1
bcc.s testzon8
move.l #ZONESIZE/4-1,d0
move.l d0,d1
movea.l memtaddr,a0
moveq.l #-1,d2
testzon1:
move.l d2,(a0)+
dbf d0,testzon1
movea.l memtaddr,a0
move.l d1,d0
testzon2:
cmp.l (a0)+,d2
dbne d0,testzon2
bne.s testzon7
movea.l memtaddr,a0
move.l d1,d0
moveq.l #1,d2
testzon3:
rol.l #1,d2
move.l d2,(a0)+
dbf d0,testzon3
movea.l memtaddr,a0
move.l d1,d0
moveq.l #1,d2
testzon4:
rol.l #1,d2
cmp.l (a0)+,d2
dbne d0,testzon4
bne.s testzon7
movea.l memtaddr,a0
move.l d1,d0
moveq.l #0,d2
testzon5:
move.l d2,(a0)+
dbf d0,testzon5
movea.l memtaddr,a0
move.l d1,d0
testzon6:
cmp.l (a0)+,d2
dbne d0,testzon6
bne.s testzon7
moveq.l #0,d0
bra.s testzon8
testzon7:
moveq.l #-1,d0
testzon8:
#endif /* TP_12 */
movea.l memtaddr,a0
adda.l #ZONESIZE,a0
move.l a0,memtaddr
rts