1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 22:30:12 +00:00

return val updates

This commit is contained in:
Wayne Parham 2021-06-07 00:03:44 -05:00
parent 33af3d7997
commit 0bbff54378
3 changed files with 21 additions and 21 deletions

View File

@ -48,7 +48,7 @@
.proc _get_DDR1A: near
lda DDR1A ; Read data direction register for port 1A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR1A
.endproc
@ -63,7 +63,7 @@
.proc _get_IOR1A: near
lda OR1A ; Read I/O register for port 1A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR1A
.endproc
@ -78,7 +78,7 @@
.proc _get_DDR1B: near
lda DDR1B ; Read data direction register for port 1B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR1B
.endproc
@ -93,7 +93,7 @@
.proc _get_IOR1B: near
lda OR1B ; Read I/O register for port 1B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR1B
.endproc
@ -108,7 +108,7 @@
.proc _get_DDR2A: near
lda DDR2A ; Read data direction register for port 2A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR2A
.endproc
@ -123,7 +123,7 @@
.proc _get_IOR2A: near
lda OR2A ; Read I/O register for port 2A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR2A
.endproc
@ -138,7 +138,7 @@
.proc _get_DDR2B: near
lda DDR2B ; Read data direction register for port 2B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR2B
.endproc
@ -153,7 +153,7 @@
.proc _get_IOR2B: near
lda OR2B ; Read I/O register for port 2B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR2B
.endproc
@ -168,7 +168,7 @@
.proc _get_DDR3A: near
lda DDR3A ; Read data direction register for port 3A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR3A
.endproc
@ -183,7 +183,7 @@
.proc _get_IOR3A: near
lda OR3A ; Read I/O register for port 3A
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR3A
.endproc
@ -198,7 +198,7 @@
.proc _get_DDR3B: near
lda DDR3B ; Read data direction register for port 3B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DDR3B
.endproc
@ -213,7 +213,7 @@
.proc _get_IOR3B: near
lda OR3B ; Read I/O register for port 3B
ldx #$00 ;
ldx #>$0000 ;
rts ; Return OR3B
.endproc

View File

@ -44,7 +44,7 @@
.proc _get_D0: near
lda DISBUF0 ; Read Digit 0
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF0
.endproc
@ -59,7 +59,7 @@
.proc _get_D1: near
lda DISBUF1 ; Read Digit 1
ldx #$00 ;
ldx #>$0000 ;
rts
.endproc
@ -74,7 +74,7 @@
.proc _get_D2: near
lda DISBUF2 ; Read Digit 2
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF2
.endproc
@ -89,7 +89,7 @@
.proc _get_D3: near
lda DISBUF3 ; Read Digit 3
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF3
.endproc
@ -104,7 +104,7 @@
.proc _get_D4: near
lda DISBUF4 ; Read Digit 4
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF4
.endproc
@ -119,7 +119,7 @@
.proc _get_D5: near
lda DISBUF5 ; Read Digit 5
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF5
.endproc
@ -134,7 +134,7 @@
.proc _get_D6: near
lda DISBUF6 ; Read byte to the right of display
ldx #$00 ;
ldx #>$0000 ;
rts ; Return DISBUF6
.endproc

View File

@ -24,7 +24,7 @@
lda #$00
ldx #$00 ; Return 0000 if successful
jmp done
error: ldx #$00
error: ldx #>$0000
lda #$FF ; or 00FF if not
done: rts
@ -47,7 +47,7 @@ done: rts
lda #$00
ldx #$00 ; Return 0000 if successful
jmp done
error: ldx #$00
error: ldx #>$0000
lda #$FF ; or 00FF if not
done: rts