blob: b47c4c76d2fb45f7c515024e47a5c0b39811fed7 [file] [log] [blame] [raw]
;
; File generated by cc65 v 2.19 - Git 71d64a3
;
.fopt compiler,"cc65 v 2.19 - Git 71d64a3"
.setcpu "6502"
.smart on
.autoimport on
.case on
.debuginfo on
.importzp sp, sreg, regsave, regbank
.importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.macpack longbranch
.dbg file, "/app/example.c", 93, 1665758739
.export _square
; ---------------------------------------------------------------
; int __near__ square (int num)
; ---------------------------------------------------------------
.segment "CODE"
.proc _square: near
.dbg func, "square", "00", extern, "_square"
.dbg sym, "num", "00", auto, 0
.segment "CODE"
.dbg line, "/app/example.c", 2
jsr pushax
.dbg line, "/app/example.c", 3
ldy #$01
jsr ldaxysp
jsr pushax
ldy #$03
jsr ldaxysp
jsr tosmulax
jmp L0001
.dbg line, "/app/example.c", 4
L0001: jsr incsp2
rts
.dbg line
.endproc