Made player interface more explicit.

This commit is contained in:
Oliver Schmidt 2018-08-12 12:21:10 +02:00 committed by GitHub
parent ae8077df9c
commit 7abb5d60cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -9,13 +9,8 @@
jsr $FC58
lda #<__DATA_LOAD__
ldx #>__DATA_LOAD__
sta $FE
stx $FE+1
lda #>__DATA_LOAD__
ldx #>__DATA_SIZE__
ldy #$00
jsr PLAY
lda $C010
@ -33,8 +28,16 @@ QUIT: .byte $04 ; param_count
.byte $00 ; reserved
.word $0000 ; reserved
; player core
; parameters:
; A - first page to play
; X - pages to play
; uses:
; $FE,$FF
PLAY: ldy #$00
sty $FE
sta $FE+1
PLAY:
; loop here as long as bits are [F]alse (aka 0)
F_NX: nop ; 2 2
nop ; 2 2