Kod: Zaznacz cały
cartconv.exe -t easy -i main.prg -o EFtest.crt
Kod: Zaznacz cały
cartconv.exe -t easy -i main.prg -o EFtest.crt -p
Kod: Zaznacz cały
*=$8000
!word launcher ;cold start
!word launcher ;warm start
!byte $c3 ;c
!byte $c2 ;b
!byte $cd ;m
!byte $38 ;8
!byte $30 ;0
launcher
stx $d016
jsr $fda3 ;prepare irq
jsr $fd50 ;init memory
jsr $fd15 ;init i/o
jsr $ff5b ;init video
;make sure this sets up everything you need,
;the calls above are probably sufficient
ldx #$fb
txs
;clear screen and set to black
lda #0
ldx #250
clearloop
sta $d800-1+250*0,x
sta $d800-1+250*1,x
sta $d800-1+250*2,x
sta $d800-1+250*3,x
dex
bne clearloop
[...]