base:sign_extension
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | base:sign_extension [2015-04-17 04:33] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Convert a signed 8-bit number to a signed 16-bit number, with .Y holding the high byte: | ||
+ | <code asm> ldy #$00 | ||
+ | lda value | ||
+ | bpl :+ | ||
+ | dey | ||
+ | :</ |
base/sign_extension.txt · Last modified: 2015-04-17 04:33 by 127.0.0.1