#MESSAGE

Grundlagenartikel über Assembler

atari's profile picture
Published in 
 · 20 Mar 2021
... Nun zur Beschreibung: Im allgemeinen sieht der Assembler den Strichpunkt als Trennung zwischen Befehlen und Kommentaren. Manche brauchen auch anstatt dem ; ein *. In Zeile 1 wird die Adresse von MESSAGE auf den Stack gebracht. Man hätte auch MOVE.L #MESSAGE,-(sp) schreiben können, aber der PEA-Befehl ist schneller(außerdem geht beim MOVE-Bef. die PC- Relative Adressierung nicht.) In Zeile 2 wird jetzt noch die Funtionsnummer auf den Stack abgelegt. Sie ist IMMER ein Word.(Für Beschreibung der Funktione ...

The mono emulator for the Atari computer

atari's profile picture
Published in 
 · 3 Dec 2020
... MOVE.L (SP)+,D6 ; else tidy up the stack MOVE.W #0,-(SP) ; return ok to,GEM TRAP #1 ; Then exit back to desktop NOTHIGH: CLR.L -(SP) MOVE.W #32,-(SP) TRAP #1 ; Enter supervisor mode ADDQ.L #6,SP MOVE.L D0,SAVESTACK ; Save the supervisor stack MOVE.L #MESSAGE,-(SP) ; Address of start of message MOVE.W #9,-(SP) ; Print startup message TRAP #1 ADDQ.L #6,SP MOVE.L $FC0018,D0 ; Get the date bytes from ROM LEA.L ROMTABLE,A0 ; Get start of rom table FINDROM: CMP.L #0,(A0) ; Check if finished table BEQ WRONGROM ...

Atari STE Blitter Chip example program

atari's profile picture
Published in 
 · 30 Nov 2020
Atari STE Blitter Chip example program
... rest_regs move.l #old_pal,a6 jsr rest_pal restore old palette jsr waitv move.b oldmode,shiftmd move.b oldvbhi,vbasehi restore registers move.b oldvbmd,vbasemd move.b oldvblo,vbaselo rts * print message to screen, then turn cursor off do_mess move.l #MESSAGE,-(a7) move.w #9,-(a7) write string to screen trap #1 addq #6,a7 move.w #-1,-(a7) move.w #0,-(a7) move.w #21,-(a7) turn cursor off trap #14 addq #6,a7 rts * Subroutine to allocate memory to this program get_mem move.l #69122,-(a7) room for 2 screens ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT