home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
221_01
/
left.asm
< prev
next >
Wrap
Assembly Source File
|
1979-12-31
|
512b
|
46 lines
;small-c V2.3
NAME left
GLOBAL left
left
LEAS -2,S
LEAY 0,S
TFR Y,D
PSHS D
LDD 6,S
STD [,S++]
cc2
LDD 0,S
PSHS D
LDB [,S++]
SEX
PSHS D
LDD #32
CMPD ,S++
LBNE cc3
LDD 0,S
ADDD #1
STD 0,S
JMP cc2
cc3
cc4
LDD 4,S
ADDD #1
STD 4,S
SUBD #1
PSHS D
LDD 2,S
ADDD #1
STD 2,S
SUBD #1
PSHS D
LDB [,S++]
SEX
STB [,S++]
CMPD #0
LBEQ cc5
JMP cc4
cc5
LEAS 2,S
RTS
END