Re: A86: menu style decimal input


[Prev][Next][Index][Thread]

Re: A86: menu style decimal input




ADD supports 16 bit addition, while SUB supports only 8.  Because of this,
all values for SUB only require one argument, since everything is subtracted
from the A register.  ADD can have A, HL or an index register as the first
argument.

(put the cursor on ld in asm studio and press f1! :)

> vgetdnumber:
>         ld a,b                  ;translate number
>         add $30-1            ; INVALID ARGUMENT TO ADD ERROR
>         jr vgetdput




Follow-Ups: References: