I wrote this program as solution for my exercise of my tutorial. This is the exercise
"3. Write another program that calculates the value of 9Ah*08h. You are not allowed to use 2 byte registers. Only at the end you will want to store your value in the H register and in the L register and then you should call Bcall(DispHL) to output the value stored in HL."
The program works but I am not sure if this is a good solution or not. Is there a better solution?
AsmPrgm Ld b,03h 0603 ld l,9Ah 2E9A Ld h,00h 2600 Ld a,h 7C Add a,a 87 Ld h,a 67 Ld a,l 7D Add a,a 87 Ld l,a 6F Jr nc,$+3 3001 Inc h 24 Djnz $-09h 10F5 Bcall(DispHL) EF0745 ret C9
Note: i haven't taught the bit level instructions like xor and or yet.