We're now at the stage where you might want to start saving and loading back the machine code programs you've created with Hexer. (Hexer was first published in the February 1987 issue of Computing with the Amstrad.) Program I shows the lines you have to either add or alter to add these options. Also, we've featured RAW, a full Z80 assembler, in this issue. This new version of Hexer and RAW can quite easily be combined to produce a useful toolkit for developing machine code programs. Both can reside in the memory at the same time, provided they have different line numbers, and a simple menu can be added to allow one or the other to be selected. First load Hexer, renumber it so that it starts at 10000 and save it as an Ascii file. Load RAW and merge Hexer, as follows: LOAD "Hexer" RENUM 10000 SAVE "Hexer",A LOAD"RAW" MERGE "Hexer"Next, type Program II.Hexer needs altering very slightly to enable it to run as RAW takes up a fair chunk of memory. The machine code must be located higher in the memory so change any reference of &2FF8 to &7FF8, and change any &3000's or 3000's to &8000 or 8000. At the start of Hexer MEMORY is set to &2FF8. This would need to be changed to &7FF8 and the start address is now &8000. When you've made these changes the program can be saved and then run. CWTA ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.73-desktop Page créée en 881 millisecondes et consultée 1927 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|