mirror of
https://github.com/cc65/cc65.git
synced 2024-08-19 17:29:37 +00:00
18 lines
370 B
ArmAsm
18 lines
370 B
ArmAsm
|
;
|
||
|
; Colin Leroy-Mira <colin@colino.net>, 2024
|
||
|
;
|
||
|
; void __fastcall__ detect_iigs(void)
|
||
|
;
|
||
|
|
||
|
.export _detect_iigs
|
||
|
.import ostype, return0, return1
|
||
|
|
||
|
.include "apple2.inc"
|
||
|
|
||
|
; Returns 1 if running on IIgs, 0 otherwise
|
||
|
_detect_iigs:
|
||
|
lda ostype
|
||
|
bpl :+
|
||
|
jmp return1
|
||
|
: jmp return0
|