| { |
| "asm": [ |
| { |
| "labels": [], |
| "source": null, |
| "text": ";" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "; File generated by cc65 v 2.17 - Git f95481fa" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ";" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .fopt compiler,\"cc65 v 2.17 - Git f95481fa\"" |
| }, |
| { |
| "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, \"/tmp/test.c\", 90, 1554043819" |
| }, |
| { |
| "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)" |
| }, |
| { |
| "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, \"/tmp/test.c\", 2" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 2 |
| }, |
| "text": " jsr pushax" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line, \"/tmp/test.c\", 3" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " ldy #$01" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " jsr ldaxysp" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " jsr pushax" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " ldy #$03" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " jsr ldaxysp" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " jsr tosmulax" |
| }, |
| { |
| "labels": [ |
| { |
| "name": "L0001", |
| "range": { |
| "endCol": 22, |
| "startCol": 17 |
| } |
| } |
| ], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 3 |
| }, |
| "text": " jmp L0001" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line, \"/tmp/test.c\", 4" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 4 |
| }, |
| "text": "L0001: jsr incsp2" |
| }, |
| { |
| "labels": [], |
| "source": { |
| "file": "/tmp/test.c", |
| "line": 4 |
| }, |
| "text": " rts" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": " .dbg line" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": ".endproc" |
| }, |
| { |
| "labels": [], |
| "source": null, |
| "text": "" |
| } |
| ], |
| "labelDefinitions": { |
| "L0001": 40, |
| "_square": 22 |
| } |
| } |