Home » Personal collection » Acorn tapes » Commercial_Releases » box02_tape07b_acorn_eu_arcade_game_creator.wav » 2_PROG2

2_PROG2

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn tapes » Commercial_Releases » box02_tape07b_acorn_eu_arcade_game_creator.wav
Filename: 2_PROG2
Read OK:
File size: 0602 bytes
Load address: 2000
Exec address: 1900
Duplicates

There are 4 duplicate copies of this file in the archive:

File contents
   10REM Simple Print
   12REM By R.A.Waddilove
   14REM (c) Electron User
   20PROCassemble
   30MODE 5
   40CALL &900
   50END
   60 
   70DEF PROCassemble
   80new=&70
   90temp=&72
  100rows=&74
  110temprows=&75
  120columns=&76
  130FOR pass=0 TO 2 STEP 2
  140P%=&900
  150[ OPT pass
  160 
  170\new=screen address
  180LDA #&5D00 MOD256
  190STA new
  200LDA #&5D00 DIV256
  210STA new+1
  220 
  230\newdata=sprite addr
  240LDA #sprite MOD256
  250STA newdata+1
  260LDA #sprite DIV256
  270STA newdata+2
  280 
  290\X=width,Y=height
  300LDX #4
  310LDY #32
  320JSR print
  330RTS
  340 
  350.print
  360 STX columns
  370 STY rows
  380 LDX #0
  390 LDY #0
  400 LDA new
  410 STA temp
  420 LDA new+1
  430 STA temp+1
  440.loop1
  450 LDA rows
  460 STA temprows
  470.loop2
  480.newdata
  490 LDA &3000,X
  500 STA (new),Y
  510 INX
  520 LDA new
  530 AND #7
  540 CMP #7
  550 BEQ bottom
  560 INC new
  570 BNE next
  580 INC new+1
  590 JMP next
  600.bottom
  610 LDA new
  620 ADC #&38
  630 STA new
  640 LDA new+1
  650 ADC #1
  660 STA new+1
  670.next
  680 DEC temprows
  690 BNE loop2
  700 LDA temp
  710 ADC #8
  720 STA new
  730 STA temp
  740 LDA temp+1
  750 ADC #0
  760 STA new+1
  770 STA temp+1
  780 DEC columns
  790 BNE loop1
  800 RTS
  810 
  820.sprite
  830]
  840NEXT
  850FOR i=0 TO 127
  860READ ?P%
  870P%=P%+1
  880NEXT
  890ENDPROC
  900 
  910REM SPRITE
  920REM X=4/Y=32
  930DATA 0,0,0,0,0,0,0,0,0,0,0,0,17,17,0,0,17,17,17,0,0,0,0,0,0,1,1,3,207,207,238,119,3,7,15,45,60,60,60,52,48,48,255,255,85,85,221,221,102,102,186,184,253,15,15,14,14,13,13,11,9,0,17,0,0,8,12,192,96,192
  940DATA 192,128,0,0,0,136,136,204,204,204,204,204,136,136,0,0,0,0,8,12,12,14,63,127,238,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,136,0,0,0

� Simple Print
� By R.A.Waddilove
� (c) Electron User

�assemble
� 5
(
� &900
2�
< 
F� �assemble
Pnew=&70
Ztemp=&72
drows=&74
ntemprows=&75
xcolumns=&76
�� pass=0 � 2 � 2
�P%=&900
�[ OPT pass
� 
�\new=screen address
�LDA #&5D00 �256
�STA new
�LDA #&5D00 �256
�
STA new+1
� 
�\newdata=sprite addr
�LDA #sprite �256
�STA newdata+1
LDA #sprite �256
STA newdata+2
 
"\X=width,Y=height
,
LDX #4
6LDY #32
@
JSR print
JRTS
T 
^
.print
h STX columns
r
 STY rows
| LDX #0
� LDY #0
� LDA new
�
 STA temp
� LDA new+1
� STA temp+1
�
.loop1
�
 LDA rows
� STA temprows
�
.loop2
�.newdata
� LDA &3000,X
� STA (new),Y
� INX
 LDA new
	 � #7
 CMP #7
& BEQ bottom
0 INC new
:
 BNE next
D INC new+1
N
 JMP next
X.bottom
b LDA new
l
 ADC #&38
v STA new
� LDA new+1
� ADC #1
� STA new+1
�	.next
� DEC temprows
� BNE loop2
�
 LDA temp
� ADC #8
� STA new
�
 STA temp
� LDA temp+1
� ADC #0
� STA new+1
 STA temp+1
 DEC columns
 BNE loop1
  RTS
* 
4.sprite
>]
H�
R� i=0 � 127
\	� ?P%
fP%=P%+1
p�
z�
� 
�� SPRITE
�� X=4/Y=32
��� 0,0,0,0,0,0,0,0,0,0,0,0,17,17,0,0,17,17,17,0,0,0,0,0,0,1,1,3,207,207,238,119,3,7,15,45,60,60,60,52,48,48,255,255,85,85,221,221,102,102,186,184,253,15,15,14,14,13,13,11,9,0,17,0,0,8,12,192,96,192
��� 192,128,0,0,0,136,136,204,204,204,204,204,136,136,0,0,0,0,8,12,12,14,63,127,238,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,136,0,0,0
�
00000000  0d 00 0a 12 f4 20 53 69  6d 70 6c 65 20 50 72 69  |..... Simple Pri|
00000010  6e 74 0d 00 0c 16 f4 20  42 79 20 52 2e 41 2e 57  |nt..... By R.A.W|
00000020  61 64 64 69 6c 6f 76 65  0d 00 0e 17 f4 20 28 63  |addilove..... (c|
00000030  29 20 45 6c 65 63 74 72  6f 6e 20 55 73 65 72 0d  |) Electron User.|
00000040  00 14 0d f2 61 73 73 65  6d 62 6c 65 0d 00 1e 07  |....assemble....|
00000050  eb 20 35 0d 00 28 0a d6  20 26 39 30 30 0d 00 32  |. 5..(.. &900..2|
00000060  05 e0 0d 00 3c 05 20 0d  00 46 0f dd 20 f2 61 73  |....<. ..F.. .as|
00000070  73 65 6d 62 6c 65 0d 00  50 0b 6e 65 77 3d 26 37  |semble..P.new=&7|
00000080  30 0d 00 5a 0c 74 65 6d  70 3d 26 37 32 0d 00 64  |0..Z.temp=&72..d|
00000090  0c 72 6f 77 73 3d 26 37  34 0d 00 6e 10 74 65 6d  |.rows=&74..n.tem|
000000a0  70 72 6f 77 73 3d 26 37  35 0d 00 78 0f 63 6f 6c  |prows=&75..x.col|
000000b0  75 6d 6e 73 3d 26 37 36  0d 00 82 14 e3 20 70 61  |umns=&76..... pa|
000000c0  73 73 3d 30 20 b8 20 32  20 88 20 32 0d 00 8c 0b  |ss=0 . 2 . 2....|
000000d0  50 25 3d 26 39 30 30 0d  00 96 0e 5b 20 4f 50 54  |P%=&900....[ OPT|
000000e0  20 70 61 73 73 0d 00 a0  05 20 0d 00 aa 17 5c 6e  | pass.... ....\n|
000000f0  65 77 3d 73 63 72 65 65  6e 20 61 64 64 72 65 73  |ew=screen addres|
00000100  73 0d 00 b4 13 4c 44 41  20 23 26 35 44 30 30 20  |s....LDA #&5D00 |
00000110  83 32 35 36 0d 00 be 0b  53 54 41 20 6e 65 77 0d  |.256....STA new.|
00000120  00 c8 13 4c 44 41 20 23  26 35 44 30 30 20 81 32  |...LDA #&5D00 .2|
00000130  35 36 0d 00 d2 0d 53 54  41 20 6e 65 77 2b 31 0d  |56....STA new+1.|
00000140  00 dc 05 20 0d 00 e6 18  5c 6e 65 77 64 61 74 61  |... ....\newdata|
00000150  3d 73 70 72 69 74 65 20  61 64 64 72 0d 00 f0 14  |=sprite addr....|
00000160  4c 44 41 20 23 73 70 72  69 74 65 20 83 32 35 36  |LDA #sprite .256|
00000170  0d 00 fa 11 53 54 41 20  6e 65 77 64 61 74 61 2b  |....STA newdata+|
00000180  31 0d 01 04 14 4c 44 41  20 23 73 70 72 69 74 65  |1....LDA #sprite|
00000190  20 81 32 35 36 0d 01 0e  11 53 54 41 20 6e 65 77  | .256....STA new|
000001a0  64 61 74 61 2b 32 0d 01  18 05 20 0d 01 22 15 5c  |data+2.... ..".\|
000001b0  58 3d 77 69 64 74 68 2c  59 3d 68 65 69 67 68 74  |X=width,Y=height|
000001c0  0d 01 2c 0a 4c 44 58 20  23 34 0d 01 36 0b 4c 44  |..,.LDX #4..6.LD|
000001d0  59 20 23 33 32 0d 01 40  0d 4a 53 52 20 70 72 69  |Y #32..@.JSR pri|
000001e0  6e 74 0d 01 4a 07 52 54  53 0d 01 54 05 20 0d 01  |nt..J.RTS..T. ..|
000001f0  5e 0a 2e 70 72 69 6e 74  0d 01 68 10 20 53 54 58  |^..print..h. STX|
00000200  20 63 6f 6c 75 6d 6e 73  0d 01 72 0d 20 53 54 59  | columns..r. STY|
00000210  20 72 6f 77 73 0d 01 7c  0b 20 4c 44 58 20 23 30  | rows..|. LDX #0|
00000220  0d 01 86 0b 20 4c 44 59  20 23 30 0d 01 90 0c 20  |.... LDY #0.... |
00000230  4c 44 41 20 6e 65 77 0d  01 9a 0d 20 53 54 41 20  |LDA new.... STA |
00000240  74 65 6d 70 0d 01 a4 0e  20 4c 44 41 20 6e 65 77  |temp.... LDA new|
00000250  2b 31 0d 01 ae 0f 20 53  54 41 20 74 65 6d 70 2b  |+1.... STA temp+|
00000260  31 0d 01 b8 0a 2e 6c 6f  6f 70 31 0d 01 c2 0d 20  |1.....loop1.... |
00000270  4c 44 41 20 72 6f 77 73  0d 01 cc 11 20 53 54 41  |LDA rows.... STA|
00000280  20 74 65 6d 70 72 6f 77  73 0d 01 d6 0a 2e 6c 6f  | temprows.....lo|
00000290  6f 70 32 0d 01 e0 0c 2e  6e 65 77 64 61 74 61 0d  |op2.....newdata.|
000002a0  01 ea 10 20 4c 44 41 20  26 33 30 30 30 2c 58 0d  |... LDA &3000,X.|
000002b0  01 f4 10 20 53 54 41 20  28 6e 65 77 29 2c 59 0d  |... STA (new),Y.|
000002c0  01 fe 08 20 49 4e 58 0d  02 08 0c 20 4c 44 41 20  |... INX.... LDA |
000002d0  6e 65 77 0d 02 12 09 20  80 20 23 37 0d 02 1c 0b  |new.... . #7....|
000002e0  20 43 4d 50 20 23 37 0d  02 26 0f 20 42 45 51 20  | CMP #7..&. BEQ |
000002f0  62 6f 74 74 6f 6d 0d 02  30 0c 20 49 4e 43 20 6e  |bottom..0. INC n|
00000300  65 77 0d 02 3a 0d 20 42  4e 45 20 6e 65 78 74 0d  |ew..:. BNE next.|
00000310  02 44 0e 20 49 4e 43 20  6e 65 77 2b 31 0d 02 4e  |.D. INC new+1..N|
00000320  0d 20 4a 4d 50 20 6e 65  78 74 0d 02 58 0b 2e 62  |. JMP next..X..b|
00000330  6f 74 74 6f 6d 0d 02 62  0c 20 4c 44 41 20 6e 65  |ottom..b. LDA ne|
00000340  77 0d 02 6c 0d 20 41 44  43 20 23 26 33 38 0d 02  |w..l. ADC #&38..|
00000350  76 0c 20 53 54 41 20 6e  65 77 0d 02 80 0e 20 4c  |v. STA new.... L|
00000360  44 41 20 6e 65 77 2b 31  0d 02 8a 0b 20 41 44 43  |DA new+1.... ADC|
00000370  20 23 31 0d 02 94 0e 20  53 54 41 20 6e 65 77 2b  | #1.... STA new+|
00000380  31 0d 02 9e 09 2e 6e 65  78 74 0d 02 a8 11 20 44  |1.....next.... D|
00000390  45 43 20 74 65 6d 70 72  6f 77 73 0d 02 b2 0e 20  |EC temprows.... |
000003a0  42 4e 45 20 6c 6f 6f 70  32 0d 02 bc 0d 20 4c 44  |BNE loop2.... LD|
000003b0  41 20 74 65 6d 70 0d 02  c6 0b 20 41 44 43 20 23  |A temp.... ADC #|
000003c0  38 0d 02 d0 0c 20 53 54  41 20 6e 65 77 0d 02 da  |8.... STA new...|
000003d0  0d 20 53 54 41 20 74 65  6d 70 0d 02 e4 0f 20 4c  |. STA temp.... L|
000003e0  44 41 20 74 65 6d 70 2b  31 0d 02 ee 0b 20 41 44  |DA temp+1.... AD|
000003f0  43 20 23 30 0d 02 f8 0e  20 53 54 41 20 6e 65 77  |C #0.... STA new|
00000400  2b 31 0d 03 02 0f 20 53  54 41 20 74 65 6d 70 2b  |+1.... STA temp+|
00000410  31 0d 03 0c 10 20 44 45  43 20 63 6f 6c 75 6d 6e  |1.... DEC column|
00000420  73 0d 03 16 0e 20 42 4e  45 20 6c 6f 6f 70 31 0d  |s.... BNE loop1.|
00000430  03 20 08 20 52 54 53 0d  03 2a 05 20 0d 03 34 0b  |. . RTS..*. ..4.|
00000440  2e 73 70 72 69 74 65 0d  03 3e 05 5d 0d 03 48 05  |.sprite..>.]..H.|
00000450  ed 0d 03 52 0f e3 20 69  3d 30 20 b8 20 31 32 37  |...R.. i=0 . 127|
00000460  0d 03 5c 09 f3 20 3f 50  25 0d 03 66 0b 50 25 3d  |..\.. ?P%..f.P%=|
00000470  50 25 2b 31 0d 03 70 05  ed 0d 03 7a 05 e1 0d 03  |P%+1..p....z....|
00000480  84 05 20 0d 03 8e 0c f4  20 53 50 52 49 54 45 0d  |.. ..... SPRITE.|
00000490  03 98 0e f4 20 58 3d 34  2f 59 3d 33 32 0d 03 a2  |.... X=4/Y=32...|
000004a0  c8 dc 20 30 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |.. 0,0,0,0,0,0,0|
000004b0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 31 37 2c 31 37  |,0,0,0,0,0,17,17|
000004c0  2c 30 2c 30 2c 31 37 2c  31 37 2c 31 37 2c 30 2c  |,0,0,17,17,17,0,|
000004d0  30 2c 30 2c 30 2c 30 2c  30 2c 31 2c 31 2c 33 2c  |0,0,0,0,0,1,1,3,|
000004e0  32 30 37 2c 32 30 37 2c  32 33 38 2c 31 31 39 2c  |207,207,238,119,|
000004f0  33 2c 37 2c 31 35 2c 34  35 2c 36 30 2c 36 30 2c  |3,7,15,45,60,60,|
00000500  36 30 2c 35 32 2c 34 38  2c 34 38 2c 32 35 35 2c  |60,52,48,48,255,|
00000510  32 35 35 2c 38 35 2c 38  35 2c 32 32 31 2c 32 32  |255,85,85,221,22|
00000520  31 2c 31 30 32 2c 31 30  32 2c 31 38 36 2c 31 38  |1,102,102,186,18|
00000530  34 2c 32 35 33 2c 31 35  2c 31 35 2c 31 34 2c 31  |4,253,15,15,14,1|
00000540  34 2c 31 33 2c 31 33 2c  31 31 2c 39 2c 30 2c 31  |4,13,13,11,9,0,1|
00000550  37 2c 30 2c 30 2c 38 2c  31 32 2c 31 39 32 2c 39  |7,0,0,8,12,192,9|
00000560  36 2c 31 39 32 0d 03 ac  9b dc 20 31 39 32 2c 31  |6,192..... 192,1|
00000570  32 38 2c 30 2c 30 2c 30  2c 31 33 36 2c 31 33 36  |28,0,0,0,136,136|
00000580  2c 32 30 34 2c 32 30 34  2c 32 30 34 2c 32 30 34  |,204,204,204,204|
00000590  2c 32 30 34 2c 31 33 36  2c 31 33 36 2c 30 2c 30  |,204,136,136,0,0|
000005a0  2c 30 2c 30 2c 38 2c 31  32 2c 31 32 2c 31 34 2c  |,0,0,8,12,12,14,|
000005b0  36 33 2c 31 32 37 2c 32  33 38 2c 32 30 34 2c 30  |63,127,238,204,0|
000005c0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |,0,0,0,0,0,0,0,0|
*
000005f0  2c 30 2c 30 2c 30 2c 31  33 36 2c 30 2c 30 2c 30  |,0,0,0,136,0,0,0|
00000600  0d ff                                             |..|
00000602
2_PROG2.m0
2_PROG2.m1
2_PROG2.m2
2_PROG2.m4
2_PROG2.m5