Updated c128 accelerator code and documentation.

This commit is contained in:
Marco van den Heuvel
2018-04-21 09:52:50 -07:00
parent 3f5683b391
commit 28f26991ac
4 changed files with 76 additions and 74 deletions

View File

@@ -38,13 +38,12 @@ _set_c128_speed:
bcs high_speed
store_speed:
sta C128_VICIIE_CLK
jmp _get_c128_speed
.byte $2C ; skip over the lda #$01
high_speed:
lda #$01
bne store_speed
_get_c128_speed:
lda C128_VICIIE_CLK
and #$01

View File

@@ -21,13 +21,16 @@ _detect_c128:
; Make sure the CPU is a 8502
.byte $1A ; NOP on 8502, INA on 65(S)C(E)02, 4510 and 65816
bne not_found
beq found
.byte $3A ; decrement A again, so a #$00 can be returned
rts
found:
; Make sure a C128 VICIIe is present
ldy C128_VICIIE_CLK
cpy #$FF
beq not_found
found:
lda #$01
not_found:
rts