Sound

Sending OUPS sound .include "telestrat.inc" BRK_TELEMON XOUPS Sending Explode sound .include "telestrat.inc" BRK_ORIX XEXPLO Sending ping sound .include "telestrat.inc" BRK_ORIX XPING Sending shoot sound .include "telestrat.inc" BRK_ORIX XSHOOT Sending ZAP sound .include "telestrat.inc" BRK_ORIX XZAP Sending 14 registers to PSG .include "telestrat.inc" ldx #<ping_data ldy #>ping_data BRK_ORIX XSONPS rts ping_data: .byte $18,$00,$00,$00,$00,$00,$00,$3e,$10,$00,$00,$00,$0f,$00

Coding : malloc & free

Malloc & free are available for kernel commands only (for instance). You must include orix macro header and call MALLOC macro : MALLOC(size) .include "orix.mac" ; Declare ZP (there is 4 16 bits ZP adress, in the future, this 4 adress in ZP will be save when multitasking will be available) MALLOC_PTR1:=userzp MALLOC_PTR1_SAVE:=userzp+2 ; used Read more about Coding : malloc & free[…]

Coding : switch to ram overlay or bank

If your program must work with Orix You don’t need to switch to overlay ram. Because Orix use it (a little) mainly for keyboard buffers and rs232 buffers (14KB are free). If you need more ram, you can use malloc. Be careful because malloc in cc65 manages his own malloc “segment”. In assembly, malloc use Read more about Coding : switch to ram overlay or bank[…]