I have the following program to convert Lower case character to uppercase letters
Alph equ 26 26 Alphabets
begin lea LC,A0 store lowercase to A0
lea UC,A1 store uppercase to A1
loop move.b (A0)+,d0 convert LC to UC
dbra d0,loop goes back to loop
LC dc.b 'computer hardware' define lowercase
UC ds.b 26 reserve for uppercase
The results displayed as COMPUTER (the HARDWARE is missing I think its due to the spacing in between) I've had tried to define the spacing as follows
SP equ $20 Define ASCII code for spacing
But it still not working.
Anyone out there can help me? Did I do something wrong on my assembler? Please help.