source: thomson/code/3rdparty/sources4-divers/MOIRAGE3.ASM@ ceffc47

main
Last change on this file since ceffc47 was ceffc47, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago

Add that collection of 3rdparty source I had lying on my disk for some time...

git-svn-id: svn://localhost/thomson@51 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

  • Property mode set to 100644
File size: 1.9 KB
Line 
1
2
3
4****************************************
5* *
6* M O I R A G E *
7* *
8****************************************
9* *
10* Programme de moirage de la mémoire *
11* point. *
12*--------------------------------------*
13* *
14* Manuel de l'assembleur 6809 *
15* du TO7/TO7-70 page 24 *
16* *
17****************************************
18
19INIT EQU $E800 Initialisation
20PORTC EQU $E7C3
21STADR EQU $4000 Début de l'écran
22ENDADR EQU $5F40 Fin de l'écran + 1
23
24*--------------------------------------*
25
26
27 ORG ENDMEM-$400 1K Réserve
28
29DIRECT EQU *<-8 Page 0
30 SETDP DIRECT
31* TITLE Balayage Ecran
32* INCLUD EQUATES Fichier contenant
33* les principales adresses d'entrée du
34* Moniteur TO7
35 PAGE
36START PSHS A,B,X,Y,U,DP Sauvegarde
37 JSR INIT Initialisation
38 LDA #DIRECT Page 0
39 TFR A,DP
40 LDA PORTC Mise en mémoire
41* points:Par mise à 1 du bit 0 du port C
42 ORA #1
43 STA PORTC
44 LDX #STADR Adresse de début
45* de l'écran
46M2 LDY #20 Compteur colonne:
47* On affiche 20 fois 2 octets, soit
48* 40 octets par ligne
49 LDD #$00FF Moirage
50* Alternance de 1 et de 0 sur la ligne
51M0 STD ,X++ Charger l'écran
52 LEAY -1,Y
53 BNE M0 Répète 20 fois
54 LDY #20 Ligne suivante
55 LDD #$FF00 Le motif est inver
56* se pour décaler les 1 et les 0 d'une
57* ligne à l'autre et obtenir un moirage
58M1 STD ,X++
59 LEAY -1,Y
60 BNE M1 Toujours 20 fois
61 CMPX #ENDADR Fin d'écran
62 BLS M2 Sinon on recom
63* mence 2 lignes à motifs alternés
64 SWI Retour au moniteur
65 END START
Note: See TracBrowser for help on using the repository browser.