Home » Archimedes archive » Acorn User » AU 1993-10.adf » !3DGraphic_3DGraphic » Source/SWI10

Source/SWI10

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 » Archimedes archive » Acorn User » AU 1993-10.adf » !3DGraphic_3DGraphic
Filename: Source/SWI10
Read OK:
File size: 01F3 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >Source.SWI10
   20REM BAU3D_Render source
   30REM by DCA
   40REM for 32-bit machines
   50REM (c) BAU August 1993
   60:
   70DEF FNswi10_name
   80="Render2D"
   90:
  100DEF FNswi10_vars
  110scale_2d=FNwk(4)
  120default_2dscale=1000
  130=0
  140:
  150DEF FNswi10_code
  160LOCAL i,a
  170[OPT pass%
  180.render2d
  190        STMFD   (sp)!,{r0-r11,link}
  200        FNadrl(14,scale_2d)
  210        CMP     r3,#0
  220        MOVEQ   r3,#default_2dscale
  230        STR     r3,[r14]
  240        MOV     r0,#1
  250        B       main_render
  260]
  270=0

� >Source.SWI10
� BAU3D_Render source
� by DCA
(� for 32-bit machines
2� (c) BAU August 1993
<:
F� �swi10_name
P="Render2D"
Z:
d� �swi10_vars
nscale_2d=�wk(4)
xdefault_2dscale=1000
�=0
�:
�� �swi10_code
�	� i,a
�[OPT pass%
�
.render2d
�'        STMFD   (sp)!,{r0-r11,link}
�        �adrl(14,scale_2d)
�        CMP     r3,#0
�$        �Q   r3,#default_2dscale
�        STR     r3,[r14]
�        MOV     r0,#1
�        B       main_render
]
=0
�
00000000  0d 00 0a 13 f4 20 3e 53  6f 75 72 63 65 2e 53 57  |..... >Source.SW|
00000010  49 31 30 0d 00 14 19 f4  20 42 41 55 33 44 5f 52  |I10..... BAU3D_R|
00000020  65 6e 64 65 72 20 73 6f  75 72 63 65 0d 00 1e 0c  |ender source....|
00000030  f4 20 62 79 20 44 43 41  0d 00 28 19 f4 20 66 6f  |. by DCA..(.. fo|
00000040  72 20 33 32 2d 62 69 74  20 6d 61 63 68 69 6e 65  |r 32-bit machine|
00000050  73 0d 00 32 19 f4 20 28  63 29 20 42 41 55 20 41  |s..2.. (c) BAU A|
00000060  75 67 75 73 74 20 31 39  39 33 0d 00 3c 05 3a 0d  |ugust 1993..<.:.|
00000070  00 46 11 dd 20 a4 73 77  69 31 30 5f 6e 61 6d 65  |.F.. .swi10_name|
00000080  0d 00 50 0f 3d 22 52 65  6e 64 65 72 32 44 22 0d  |..P.="Render2D".|
00000090  00 5a 05 3a 0d 00 64 11  dd 20 a4 73 77 69 31 30  |.Z.:..d.. .swi10|
000000a0  5f 76 61 72 73 0d 00 6e  13 73 63 61 6c 65 5f 32  |_vars..n.scale_2|
000000b0  64 3d a4 77 6b 28 34 29  0d 00 78 18 64 65 66 61  |d=.wk(4)..x.defa|
000000c0  75 6c 74 5f 32 64 73 63  61 6c 65 3d 31 30 30 30  |ult_2dscale=1000|
000000d0  0d 00 82 06 3d 30 0d 00  8c 05 3a 0d 00 96 11 dd  |....=0....:.....|
000000e0  20 a4 73 77 69 31 30 5f  63 6f 64 65 0d 00 a0 09  | .swi10_code....|
000000f0  ea 20 69 2c 61 0d 00 aa  0e 5b 4f 50 54 20 70 61  |. i,a....[OPT pa|
00000100  73 73 25 0d 00 b4 0d 2e  72 65 6e 64 65 72 32 64  |ss%.....render2d|
00000110  0d 00 be 27 20 20 20 20  20 20 20 20 53 54 4d 46  |...'        STMF|
00000120  44 20 20 20 28 73 70 29  21 2c 7b 72 30 2d 72 31  |D   (sp)!,{r0-r1|
00000130  31 2c 6c 69 6e 6b 7d 0d  00 c8 1e 20 20 20 20 20  |1,link}....     |
00000140  20 20 20 a4 61 64 72 6c  28 31 34 2c 73 63 61 6c  |   .adrl(14,scal|
00000150  65 5f 32 64 29 0d 00 d2  19 20 20 20 20 20 20 20  |e_2d)....       |
00000160  20 43 4d 50 20 20 20 20  20 72 33 2c 23 30 0d 00  | CMP     r3,#0..|
00000170  dc 24 20 20 20 20 20 20  20 20 ec 51 20 20 20 72  |.$        .Q   r|
00000180  33 2c 23 64 65 66 61 75  6c 74 5f 32 64 73 63 61  |3,#default_2dsca|
00000190  6c 65 0d 00 e6 1c 20 20  20 20 20 20 20 20 53 54  |le....        ST|
000001a0  52 20 20 20 20 20 72 33  2c 5b 72 31 34 5d 0d 00  |R     r3,[r14]..|
000001b0  f0 19 20 20 20 20 20 20  20 20 4d 4f 56 20 20 20  |..        MOV   |
000001c0  20 20 72 30 2c 23 31 0d  00 fa 1f 20 20 20 20 20  |  r0,#1....     |
000001d0  20 20 20 42 20 20 20 20  20 20 20 6d 61 69 6e 5f  |   B       main_|
000001e0  72 65 6e 64 65 72 0d 01  04 05 5d 0d 01 0e 06 3d  |render....]....=|
000001f0  30 0d ff                                          |0..|
000001f3