A typical way to extend Color BASIC is to write some assembly:
INTCVT equ $B3ED ; put argument into D
GIVABF equ $B4F4 ; return D to BASIC
org $7F00
swapbyte jsr INTCVT ; get argument
exg a,b ; swap bytes
jmp GIVABF ; return it to BASIC
end
Then assemble the code, transcribe the resulting object code into DATA statements in a BASIC
(
Read more... )