about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-20 21:26:15 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-20 21:26:15 -0700
commit83b7c4a1018d17548055d63f18bffc37e869c695 (patch)
treeb447a12c64ff22db948ff1c1fd6cbff6370701e1
parent47a9d22a059fc7baf52dca8c7942dbe01619df27 (diff)
downloadmu-83b7c4a1018d17548055d63f18bffc37e869c695.tar.gz
5427
-rw-r--r--subx/067print-int.subx17
-rw-r--r--subx/stats.md2
2 files changed, 1 insertions, 18 deletions
diff --git a/subx/067print-int.subx b/subx/067print-int.subx
index 6ce50cc3..c9b8d2e4 100644
--- a/subx/067print-int.subx
+++ b/subx/067print-int.subx
@@ -252,23 +252,6 @@ test-print-int32:
     # . end
     c3/return
 
-# TODO: append to string
-check-ints-equal2: # (a : int, b : int, msg : (address array byte))
-    # . prolog
-    55/push-EBP
-    89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                 # copy ESP to EBP
-    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP    .           .             .           .           0x10/disp8      .                 # push *(EBP+16)
-    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP    .           .             .           .           0xc/disp8       .                 # push *(EBP+12)
-    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP    .           .             .           .           8/disp8         .                 # push *(EBP+8)
-    e8/call  check-ints-equal/disp32
-    # . . discard args
-    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               0xc/imm32           # add to ESP
-    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP    .           .             .           .           8/disp8         .                 # push *(EBP+8)
-    # . epilog
-    89/copy                         3/mod/direct    4/rm32/ESP    .           .             .           5/r32/EBP   .               .                 # copy EBP to ESP
-    5d/pop-to-EBP
-    c3/return
-
 print-int32-buffered:  # f : (address buffered-file), n : int -> <void>
     # pseudocode:
     #  write-buffered(f, "0x")
diff --git a/subx/stats.md b/subx/stats.md
index 90c23e0b..19b27a9e 100644
--- a/subx/stats.md
+++ b/subx/stats.md
@@ -1,6 +1,6 @@
                           Initial   -tests/whitespace/comments
 ## Lines in source
-standard library           7712     1814
+standard library           9597     2316
 apps/crenshaw2-1b.subx      798      176
 apps/crenshaw2-1.subx       601      180
 apps/factorial.subx         107       28