From 1083f2a400d926d57bc9dc6ab412f54295719bfc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 29 Jun 2021 22:37:00 -0700 Subject: . --- 318counter.subx | 31 ------------------------------- 318debug-counter.subx | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 318counter.subx create mode 100644 318debug-counter.subx diff --git a/318counter.subx b/318counter.subx deleted file mode 100644 index 74e1f4f8..00000000 --- a/318counter.subx +++ /dev/null @@ -1,31 +0,0 @@ -# A rudimentary counter that can be called from anywhere. - -== code - -count-event: - # . prologue - 55/push-ebp - 89/<- %ebp 4/r32/esp - # - ff 0/subop/increment *Foo -$count-event:end: - # . epilogue - 89/<- %esp 5/r32/ebp - 5d/pop-to-ebp - c3/return - -count-of-events: # -> _/eax: int - # . prologue - 55/push-ebp - 89/<- %ebp 4/r32/esp - # - 8b/-> *Foo 0/r32/eax -$count-of-events:end: - # . epilogue - 89/<- %esp 5/r32/ebp - 5d/pop-to-ebp - c3/return - -== data -Foo: - 0/imm32 diff --git a/318debug-counter.subx b/318debug-counter.subx new file mode 100644 index 00000000..74e1f4f8 --- /dev/null +++ b/318debug-counter.subx @@ -0,0 +1,31 @@ +# A rudimentary counter that can be called from anywhere. + +== code + +count-event: + # . prologue + 55/push-ebp + 89/<- %ebp 4/r32/esp + # + ff 0/subop/increment *Foo +$count-event:end: + # . epilogue + 89/<- %esp 5/r32/ebp + 5d/pop-to-ebp + c3/return + +count-of-events: # -> _/eax: int + # . prologue + 55/push-ebp + 89/<- %ebp 4/r32/esp + # + 8b/-> *Foo 0/r32/eax +$count-of-events:end: + # . epilogue + 89/<- %esp 5/r32/ebp + 5d/pop-to-ebp + c3/return + +== data +Foo: + 0/imm32 -- cgit 1.4.1-2-gfad0