Skip to content

Commit cd266ed

Browse files
committed
Fixed cia samples
1 parent fb35245 commit cd266ed

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ retroProject {
1111
dialectVersion = "5.25"
1212
libDirs = ["..", ".ra/deps/c128lib"]
1313

14-
libFromGitHub "c128lib/common", "0.5.0"
14+
libFromGitHub "c128lib/common", "0.5.1"
1515
libFromGitHub "c128lib/chipset", "0.6.0-alpha"
1616
}

cia.asm

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,25 @@ Entry: {
4141

4242
Loop:
4343
c128lib_GetFirePressedPort1()
44-
sta $04E2
44+
clc
4545
beq !Zero+
46-
sta
46+
adc #33
47+
jmp !Print+
48+
!Zero:
49+
adc #48
50+
51+
!Print:
52+
sta $04E3
4753

4854
c128lib_GetFirePressedPort2()
55+
clc
56+
beq !Zero+
57+
adc #33
58+
jmp !Print+
59+
!Zero:
60+
adc #48
61+
62+
!Print:
4963
sta $050B
5064

5165
jmp Loop

0 commit comments

Comments
 (0)