Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2528

development tools • Re: BeebAsm

$
0
0
BeebASM is fine for patching binaries in my experience. I did the following to patch in the exomizer compressed code modules into the test ROM I've been (slowly) working on.

Code:

;;;; NUMBER OF OVERLAYSnoverlays = 3tbl = $ff00tbl_end = tbl+2*noverlaysfont = $f900MACRO _ovl load_addr, filenameEQUB >load_addr, <load_addrINCBIN filenameENDMACROORG &C000INCBIN "bin/test.noovl.bin"CLEAR EXOSTARTADDR, fontORG EXOSTARTADDRGUARD font;;;; OVERLAYS.init_ovl $200, "bin/ovl_init.exo".menu_ovl $400, "bin/ovl_menu.exo".test_ovl 40*5*8, "HelloWorld.exo"PRINT " ** ROM bytes free=",(font-*);; pad with $ffFOR i,*,font-1EQUB $ffNEXTCLEAR tbl,tbl_endORG tblGUARD tbl_end;;;; OVERLAY POINTER TABLES.ovl_tbl_loEQUB <init, <menu, <test.ovl_tbl_hiEQUB >init, >menu, >testIF *<>tbl_endERROR "Overlay is table wrong length"ENDIFSAVE &C000,&10000
I can't say that I was confused by the usage of CLEAR.

Statistics: Posted by cmorley — Thu Sep 05, 2024 8:28 pm



Viewing all articles
Browse latest Browse all 2528

Trending Articles