mirror of
https://github.com/cc65/cc65.git
synced 2024-10-19 16:24:46 +00:00
21 lines
378 B
ArmAsm
21 lines
378 B
ArmAsm
;
|
|
; 2019-09-09, Greg King
|
|
;
|
|
; signed char get_ostype(void)
|
|
; /* Return a "build version". */
|
|
;
|
|
; Positive number -- release build
|
|
; Negative number -- prerelease build
|
|
; -1 -- custom build
|
|
;
|
|
|
|
.export _get_ostype
|
|
|
|
.proc _get_ostype
|
|
ldx #>$0000
|
|
lda $ff80
|
|
bpl :+
|
|
dex ; negative
|
|
: rts
|
|
.endproc
|