I'm trying to write a subroutine that prints out memory between two given addresses. I'm not exactly sure how do accomplish this. I already have a subroutine that can print a hex value to console. So I guess I just print out all the hex values in all the corresponding memory locations. But how do I load a memory location, then print all the memory locations up to the last memory location given as a parameter? Can anyone help?
Memory between 3010 and (where ???? is the hex value there)
Addresses to use, i.e. could use num1 to num4 or any other combination
num1 .fill 1
num2 .fill 8
num3 .fill 256
num4 .fill 1024