Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

make memcpy_rev work for non-multiples of 16

  • Loading branch information...
commit b9561c631d2cf7f5f5b7bc12f5d029573e3a9643 1 parent 384263e
authored

Showing 2 changed files with 11 additions and 2 deletions. Show diff stats Hide diff stats

  1. +10 0 debugexamples.dasm16
  2. +1 2  kernel.dasm16
10 debugexamples.dasm16
@@ -100,6 +100,16 @@
100 100 JSR scroll_down
101 101 SET PC, crash
102 102 :cr_2
  103 + IFN A, 3
  104 + SET PC, cr_3
  105 + SET A, [_pc_vidbase]
  106 + SET B, A
  107 + ADD B, 23
  108 + SET C, 12
  109 + JSR memcpy_rev
  110 + SET PC, crash
  111 +
  112 +:cr_3
103 113 IFN A, 0
104 114 JSR printchar
105 115 SET B, I
3  kernel.dasm16
@@ -566,10 +566,9 @@
566 566 ADD SP, C
567 567
568 568 AND C, 0x0f
  569 + SUB B, C
569 570 XOR C, 0x0f
570 571 ADD C, 1
571   - ADD B, 16
572   - SUB B, C
573 572 SHL C, 1
574 573 ADD PC, C
575 574 :_pc_memcpy_r_loop

0 comments on commit b9561c6

Please sign in to comment.
Something went wrong with that request. Please try again.