mirror of
https://github.com/cc65/cc65.git
synced 2024-08-17 03:29:15 +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
|