From 1ce8c90bde2f8a510e15be18b66e40798a5b398e Mon Sep 17 00:00:00 2001 From: Michaelangel007 Date: Wed, 5 Jul 2017 22:27:57 -0700 Subject: [PATCH] Optimized 95 bytes --- README.md | 20 ++++++++++---------- print_uint16 | Bin 103 -> 102 bytes print_uint16.s | 6 ++---- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7bca7dc..e5cfeb9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Print unsigned 16-bit -6502 assembly code to print an unsigned 16-bit in 96 bytes ($60). +6502 assembly code to print an unsigned 16-bit in 95 bytes ($5F). Features: @@ -14,18 +14,18 @@ Copy/Paste into your favorite emulator. ```asm 0800:A9 12 A2 34 4C 07 08 8E -0808:65 08 8D 66 08 A9 00 8D -0810:61 08 8D 62 08 8D 63 08 -0818:A2 10 F8 0E 65 08 2E 66 -0820:08 A0 FD B9 64 07 79 64 -0828:07 99 64 07 C8 D0 F4 CA -0830:D0 E9 D8 A0 03 B9 60 08 +0808:64 08 8D 65 08 A9 00 8D +0810:60 08 8D 61 08 8D 62 08 +0818:A2 10 F8 0E 64 08 2E 65 +0820:08 A0 FD B9 63 07 79 63 +0828:07 99 63 07 C8 D0 F4 CA +0830:D0 E9 D8 A0 03 B9 5F 08 0838:20 44 08 88 D0 F7 8A E0 0840:00 F0 11 60 48 20 7B F8 0848:20 4E 08 68 29 0F D0 04 -0850:E0 00 F0 0C C9 0A 90 02 -0858:69 06 69 B0 20 ED FD E8 -0860:60 00 00 00 00 00 00 +0850:E0 00 F0 EF C9 0A 90 02 +0858:69 06 69 B0 E8 4C ED FD +0860:00 00 00 00 00 00 ``` diff --git a/print_uint16 b/print_uint16 index 8415f2f7af51fe6ed3cb6990ca5ebc56fa867edb..a05da9f9075e7854261ad17fcc0a33dd1bf944f2 100644 GIT binary patch literal 102 zcmZ1}w8+GVoue;>qc@dfB|~olM{goWZxY8MfggM+9D1o73;ym*X0J?UpP9^l;=-3x z7hc|2z`Qe_L&1fk