APPLICATIONSPROGRAMMATION ★ Z80 DISASSEMBLER|COMPUTING WITH THE AMSTRAD) ★

Raw Assembler (Computing With the Amstrad)Z80 Disassembler (Computing With the Amstrad)
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

A must for the keen machine code programmer's toolkit, by ROLAND WADDILOVE

TO complement the Z80 assembler listed in the July issue of Computing with the Amstrad, RAW, here's a Z80 disassembler. As the name implies, it's the exact opposite of an assembler and is a valuable machine code programmer's tool.

Machine code is pretty unintelligible. As you probably know, it's just a series of binary numbers in the range 0 to 255. When we write machine code we write it in assembly language first, as it's much easier to understand, and then translate the mnemonics into machine code.

This is fine, but what happens if you haven't got the original assembly listing? This may occur if you've lost it, but more commonly if you didn't have it in the first place.

Many games and utilities are written in machine code and although most games are protected, utilities are often not.

Just how does that screen dump or RSX vork? There's a lot to be learnt by looking at other people's programming techniques.

Assembly listings also take up a great deal of space in the magazine and not everyone has an assembler -order a back issue immediately - so a routine may be listed as a series of hex numbers in data statements.

On top of this are two ROMs containing 16k of machine code - the Basic and operation system. Many of you will have a disc interface with a further 16k of code. There's a lot of interesting material lurking about in there.

What is needed is a program which wiir convert the machine code back into an assembly listing. This is the function of this disassembler.

All of the Amstrad's 64k of RAM can be disassembled, except for the 7k taken up by the program itself. Also any of the 252 possible ROMs can be selected and disassembled.

A memory lister producing a hexadecimal and Ascii dump has been included. Again this can display data in RAM or any ROM.

All the ROMs are interrogated when the program is first run and their type and select address printed. The addresses are needed when choosing a ROM. There's also an option to send all output to the printer if a hard copy is required.

Unfortunately a disassembler can't reproduce an exact copy of an assembly listing as it has no way of knowing the labels used by the programmer. The address or number is printed instead.

Another area of difficulty is data tables. A disassembler can't detect data in the middle of a program. It simply attempts to disassemble the lot.

Apart from these minor difficulties it produces a very close copy of the original listing. You should find it an extremely useful tool.

The program uses virtually no data and is very compact.

It works out each instruction by looking at the bit pattern of the object code. It then selects the appropriate subroutine.

The algorithm used is superb and can be found in Mastering Machine Code On Your ZX81 OR ZX80, by Toni Baker. There you'll find a full description of how the program works.

CWTA

★ PUBLISHER: Computing With The Amstrad
★ YEAR: 1985
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LICENCE: LISTING
★ AUTHOR: ROLAND WADDILOVE

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» Z80  Disassembler    (Computing  with  the  Amstrad)    ENGLISHDATE: 2020-07-18
DL: 10 fois
TYPE: ZIP
SIZE: 6Ko
NOTE: 40 Cyls
.HFE: NON

» Z80  Disassembler    (Computing  with  the  Amstrad)    LISTINGDATE: 2018-03-20
DL: 85 fois
TYPE: text
SIZE: 8Ko

Je participe au site:
» Newfile(s) upload/Envoye de fichier(s)
★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Promenu
» Applications » CPC International Z80 - Assembler (CPC Amstrad International)
» Applications » Arrays variabel dimensioniert
» Applications » Hisoft Devpac80 v2
» Applications » Pascal - Compiler v2.0 (CPC Amstrad International)
» Applications » Thunder Basic

QUE DIT LA LOI FRANÇAISE:

L'alinéa 8 de l'article L122-5 du Code de la propriété intellectuelle explique que « Lorsque l'œuvre a été divulguée, l'auteur ne peut interdire la reproduction d'une œuvre et sa représentation effectuées à des fins de conservation ou destinées à préserver les conditions de sa consultation à des fins de recherche ou détudes privées par des particuliers, dans les locaux de l'établissement et sur des terminaux dédiés par des bibliothèques accessibles au public, par des musées ou par des services d'archives, sous réserve que ceux-ci ne recherchent aucun avantage économique ou commercial ». Pas de problème donc pour nous!

CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 122 millisecondes et consultée 1664 fois

L'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.