Thanks for the tip, I tried something like that now
ld bc,(&9000)
ld a,c
sub a, 48
add b ;Works now?
Call PrintChar
which works.
So I am now just wondering why the Example from Lesson 3 with BASIC works without such a conversion.
(Time flies by SOOO quickly playing around with this thing ...
Search found 3 matches
- Wed May 01, 2019 9:13 pm
- Forum: Amstrad CPC Assembly Programming
- Topic: Simple Addition Issues - Result is a letter
- Replies: 4
- Views: 13394
- Wed May 01, 2019 7:12 pm
- Forum: Introductions
- Topic: Hi All!
- Replies: 1
- Views: 4533
Hi All!
Hay Board,
fews days ago I never would have imagined that I end up here.
I was wondering about how Pokemon was programmed and found out that Pokemon has been completely reverse engineered, which made me curious.
Now I want to learn about Gameboy Development to understand the code better and ...
fews days ago I never would have imagined that I end up here.
I was wondering about how Pokemon was programmed and found out that Pokemon has been completely reverse engineered, which made me curious.
Now I want to learn about Gameboy Development to understand the code better and ...
- Wed May 01, 2019 6:59 pm
- Forum: Amstrad CPC Assembly Programming
- Topic: Simple Addition Issues - Result is a letter
- Replies: 4
- Views: 13394
Simple Addition Issues - Result is a letter
Hi,
I can't seem to get Addition running properly without using Basic as in the Tutorial.
The result always seems to 'overflow'.
My Code:
PrintChar equ &BB5A ;AMSTRAD Firmware Function prints a
WaitChar equ &BB06 ;AMSTRAD Firmware Function waits for input and sets to a
org &8000
;First Operand ...
I can't seem to get Addition running properly without using Basic as in the Tutorial.
The result always seems to 'overflow'.
My Code:
PrintChar equ &BB5A ;AMSTRAD Firmware Function prints a
WaitChar equ &BB06 ;AMSTRAD Firmware Function waits for input and sets to a
org &8000
;First Operand ...