enrico
Experienced Member
I'm using an assembler z80 by practicing to see if it can properly assemble the source code of my card Ferguson BigBoard I. At reset, the CPU executes a sequence inserted in his first 16 bytes :
DI
ROMRAM: LD HL,0010H
LD DE,ROM
LD BC,0800H
LDIR
JP ROM
NOP
This sequence allows to copy the contents of the 2716 EPROM (2Kbyte) in RAM at F000H address and then jump to run the copied code into RAM at that address.
The assembler requires me to enter 3 addresses in hexadecimal.
1) Enter the base address of flash or ROM memory in the system. This wizard assumes this area is contiguous but the linker is not restricted to this setup
2) Enter the base START address of RAM in the system. This wizard assumes RAM is contìguous above this address the linker is not restricted to this setup
3) Enter the base logical START address of RAM in the system noting that logical addresses are from 0000 to FFFF. For a banked program, this should be blank for automatic assignement.
The values that I thought would be:
1) 0000H, because the itself ROM start address is 0000H
2) 0000H, because in CPM system, the zero page RAM starts at 0000H
3) 0000H, why not using bank switching (not sure exactly what it is) the zero page and the start of RAM should still 0000H
In this way, however, get a .bin file of 62kbytes as if it were an image of all the RAM 0000 to F7FF instead of a 2Kbytes file like the code I copied from my 2716 eprom.
Could you suggest me what to put exactly?
Thanks in advance for any suggestion
Enrico
DI
ROMRAM: LD HL,0010H
LD DE,ROM
LD BC,0800H
LDIR
JP ROM
NOP
This sequence allows to copy the contents of the 2716 EPROM (2Kbyte) in RAM at F000H address and then jump to run the copied code into RAM at that address.
The assembler requires me to enter 3 addresses in hexadecimal.
1) Enter the base address of flash or ROM memory in the system. This wizard assumes this area is contiguous but the linker is not restricted to this setup
2) Enter the base START address of RAM in the system. This wizard assumes RAM is contìguous above this address the linker is not restricted to this setup
3) Enter the base logical START address of RAM in the system noting that logical addresses are from 0000 to FFFF. For a banked program, this should be blank for automatic assignement.
The values that I thought would be:
1) 0000H, because the itself ROM start address is 0000H
2) 0000H, because in CPM system, the zero page RAM starts at 0000H
3) 0000H, why not using bank switching (not sure exactly what it is) the zero page and the start of RAM should still 0000H
In this way, however, get a .bin file of 62kbytes as if it were an image of all the RAM 0000 to F7FF instead of a 2Kbytes file like the code I copied from my 2716 eprom.
Could you suggest me what to put exactly?
Thanks in advance for any suggestion
Enrico