| { |
| "asm": [ |
| { |
| "labels": [], |
| "source": null, |
| "text": ";" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "; File generated by cc65 v 2.19 - Git 71d64a3" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ";" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .fopt compiler,\"cc65 v 2.19 - Git 71d64a3\"" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .setcpu \"6502\"" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .smart on" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .autoimport on" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .case on" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .debuginfo on" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .importzp sp, sreg, regsave, regbank" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .macpack longbranch" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg file, \"/app/example.c\", 93, 1665758739" |
| }, |
| { |
| "labels": [ |
| { |
| "name": "_square", |
| "range": { |
| "endCol": 26, |
| "startCol": 19 |
| } |
| } |
| ], |
| "source": null, |
| "text": " .export _square" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "; ---------------------------------------------------------------" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "; int __near__ square (int num)" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "; ---------------------------------------------------------------" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ".segment \"CODE\"" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ".proc _square: near" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [ |
| { |
| "name": "_square", |
| "range": { |
| "endCol": 55, |
| "startCol": 48 |
| } |
| } |
| ], |
| "source": null, |
| "text": " .dbg func, \"square\", \"00\", extern, \"_square\"" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg sym, \"num\", \"00\", auto, 0" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ".segment \"CODE\"" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line, \"/app/example.c\", 2" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 2 |
| }, |
| "text": " jsr pushax" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line, \"/app/example.c\", 3" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " ldy #$01" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " jsr ldaxysp" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " jsr pushax" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " ldy #$03" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " jsr ldaxysp" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " jsr tosmulax" |
| }, |
| { |
| "labels": [ |
| { |
| "name": "L0001", |
| "range": { |
| "endCol": 22, |
| "startCol": 17 |
| } |
| } |
| ], |
| "source": { |
| "file": null, |
| "line": 3 |
| }, |
| "text": " jmp L0001" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line, \"/app/example.c\", 4" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 4 |
| }, |
| "text": "L0001: jsr incsp2" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": null, |
| "line": 4 |
| }, |
| "text": " rts" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ".endproc" |
| } |
| ], |
| "labelDefinitions": { |
| "L0001": 40, |
| "_square": 22 |
| } |
| } |