mirror of
https://github.com/cc65/cc65.git
synced 2025-01-22 21:32:57 +00:00
Removed c128 code
git-svn-id: svn://svn.cc65.org/cc65/trunk@1080 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
41c0394aef
commit
5c537721bf
@ -28,14 +28,9 @@
|
|||||||
.export _rs232_put, _rs232_pause, _rs232_unpause, _rs232_status
|
.export _rs232_put, _rs232_pause, _rs232_unpause, _rs232_status
|
||||||
|
|
||||||
|
|
||||||
useC64 = 1
|
NmiExit = $febc ;exit address for nmi
|
||||||
.if useC64
|
|
||||||
NmiExit = $febc ;exit address for nmi
|
|
||||||
.else
|
|
||||||
NmiExit = $ff33 ;exit address for nmi
|
|
||||||
.endif
|
|
||||||
|
|
||||||
ACIA = $DE00
|
ACIA = $DE00
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -116,16 +111,9 @@ _rs232_init:
|
|||||||
@L3: stx Turbo232
|
@L3: stx Turbo232
|
||||||
|
|
||||||
;** get C128/C64 cpu speed
|
;** get C128/C64 cpu speed
|
||||||
.if useC64
|
|
||||||
lda #1
|
lda #1
|
||||||
sta CpuSpeed
|
sta CpuSpeed
|
||||||
.else
|
|
||||||
lda $d030
|
|
||||||
and #$01
|
|
||||||
clc
|
|
||||||
adc #1
|
|
||||||
sta CpuSpeed
|
|
||||||
.endif
|
|
||||||
|
|
||||||
;** check for super-cpu at 20 MHz
|
;** check for super-cpu at 20 MHz
|
||||||
|
|
||||||
@ -541,7 +529,6 @@ _rs232_status:
|
|||||||
;
|
;
|
||||||
|
|
||||||
NmiHandler:
|
NmiHandler:
|
||||||
.if useC64
|
|
||||||
pha
|
pha
|
||||||
lda ACIA+RegStatus ;(4) ;status ;check for byte received
|
lda ACIA+RegStatus ;(4) ;status ;check for byte received
|
||||||
and #$08 ;(2)
|
and #$08 ;(2)
|
||||||
@ -551,11 +538,6 @@ NmiHandler:
|
|||||||
pha
|
pha
|
||||||
tya
|
tya
|
||||||
pha
|
pha
|
||||||
.else
|
|
||||||
lda ACIA+RegStatus ;(4) ;status ;check for byte received
|
|
||||||
and #$08 ;(2)
|
|
||||||
beq NmiNorm ;(2*)
|
|
||||||
.endif
|
|
||||||
lda ACIA+RegStatus ;(4) opt ;status ;check for receive errors
|
lda ACIA+RegStatus ;(4) opt ;status ;check for receive errors
|
||||||
and #$07 ;(2) opt
|
and #$07 ;(2) opt
|
||||||
beq @L1 ;(3*)opt
|
beq @L1 ;(3*)opt
|
||||||
@ -589,11 +571,8 @@ NmiHandler:
|
|||||||
inc DropCnt+3
|
inc DropCnt+3
|
||||||
@L4: jmp NmiExit
|
@L4: jmp NmiExit
|
||||||
|
|
||||||
@L9:
|
@L9: pla
|
||||||
.if useC64
|
jmp NmiContinue
|
||||||
pla
|
|
||||||
.endif
|
|
||||||
jmp NmiContinue
|
|
||||||
|
|
||||||
;----------------------------------------------------------------------------
|
;----------------------------------------------------------------------------
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user