diff options
author | B. Watson <yalhcru@gmail.com> | 2019-03-15 15:26:21 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2019-03-15 15:26:21 -0400 |
commit | b747cba6d837ccbc2cd133ddf9778e2bebc6c8a9 (patch) | |
tree | 2e566c27a9a9c7760518582142a3428f476f68b8 | |
parent | 2fdf74c2c6a7d0d819a601410fd8c8be0e8ea411 (diff) | |
download | fujichat-b747cba6d837ccbc2cd133ddf9778e2bebc6c8a9.tar.gz |
cruft removal
-rw-r--r-- | src/new_format_ip.s | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/new_format_ip.s b/src/new_format_ip.s deleted file mode 100644 index 5fab2ba..0000000 --- a/src/new_format_ip.s +++ /dev/null @@ -1,54 +0,0 @@ - .fopt compiler,"cc65 v 2.12.9" - .setcpu "6502" - .smart on - .autoimport on - .case on - .debuginfo off - .importzp sp, sreg, regsave, regbank, tmp1, ptr1, ptr2 - .macpack longbranch - .export _new_format_ip - - .segment "BSS" -buf: - .res 20,$0 - - .segment "RODATA" -fmt: .byte "%d.%d.%d.%d", 0 - -; unsigned char* __fastcall__ format_ip (__near__ unsigned int[2]*) - .segment "CODE" -_new_format_ip: - sta ptr1 - stx ptr1+1 - - lda #<buf - ldx #>buf - jsr pushax - - lda #<fmt - ldx #>fmt - jsr pushax - - ldy #0 - lda (ptr1),y - jsr pusha0 - - ldy #1 - lda (ptr1),y - jsr pusha0 - - ldy #2 - lda (ptr1),y - jsr pusha0 - - ldy #3 - lda (ptr1),y - jsr pusha0 - - ldy #$0c - jsr _sprintf - - lda #<buf - ldx #>buf - - rts |