mirror of
https://github.com/cc65/cc65.git
synced 2024-08-16 12:29:03 +00:00
17 lines
298 B
ArmAsm
17 lines
298 B
ArmAsm
|
;
|
||
|
; Oliver Schmidt, 2013-05-16
|
||
|
;
|
||
|
|
||
|
.constructor initmainargs, 24
|
||
|
.import __argc, __argv, args
|
||
|
|
||
|
.segment "INIT"
|
||
|
|
||
|
initmainargs:
|
||
|
lda #<__argv
|
||
|
ldx #>__argv
|
||
|
jsr args
|
||
|
sta __argc
|
||
|
stx __argc+1
|
||
|
rts
|