cc65/libsrc/cx16/get_ostype.s

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