From eea04e3327972f052dcfb8ae0854b77f87d3d52f Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 18 Sep 2020 14:49:07 -0400 Subject: - Added support for structs, and unions to the emulator's assembler. - Make the symbol table a doublely linked list, in both ways. - Optimized the memcopy() function. - Changed the benchmark timing, to now use a timer, and stops once the timer reaches zero. When the timer hits zero, it sends SIGALRM to the main function, which tells the emulator that the benchmark is done. --- test/popcnt2.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/popcnt2.s') diff --git a/test/popcnt2.s b/test/popcnt2.s index 3aa38f0..503b074 100644 --- a/test/popcnt2.s +++ b/test/popcnt2.s @@ -14,7 +14,7 @@ popcnt: bra @loop ; Keep looping. @end: tya ; Return the bit count. - rts.w ; End of popcnt. + rts ; End of popcnt. reset: @@ -27,7 +27,7 @@ reset: tay ; Reset Y. main: pha.q ; Save A. - jsr.w popcnt ; Get population count. + jsr popcnt ; Get population count. tay ; Save it in Y. pla.q ; Get A back. inc ; Increment A by one. -- cgit v1.2.3-13-gbd6f