Home » Archimedes archive » Acorn User » AU 1995-01.adf » !StarInfo_StarInfo » Bagnall/!BinImage/Libraries/Graphics

Bagnall/!BinImage/Libraries/Graphics

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 1995-01.adf » !StarInfo_StarInfo
Filename: Bagnall/!BinImage/Libraries/Graphics
Read OK:
File size: 014D bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Graphics Library
   20
   30DEF PROCmode
   40LOCAL F%
   50SYS "OS_CheckModeValid",21 TO ;F%
   60F%=F% AND 2
   70IF F%=0 MODE 28 ELSE MODE 15
   80SYS "OS_ReadModeVariable",-1,11 TO ,,maxX
   90SYS "OS_ReadModeVariable",-1,12 TO ,,maxY
  100SYS "OS_ReadModeVariable",-1,4 TO ,,stepX
  110SYS "OS_ReadModeVariable",-1,5 TO ,,stepY
  120maxX=(maxX+1)
  130maxY=(maxY+1)
  140OFF
  150ENDPROC

� Graphics Library

� �mode
(� F%
2#ș "OS_CheckModeValid",21 � ;F%
<
F%=F% � 2
F� F%=0 � 28 � � 15
P+ș "OS_ReadModeVariable",-1,11 � ,,maxX
Z+ș "OS_ReadModeVariable",-1,12 � ,,maxY
d+ș "OS_ReadModeVariable",-1,4 � ,,stepX
n+ș "OS_ReadModeVariable",-1,5 � ,,stepY
xmaxX=(maxX+1)
�maxY=(maxY+1)
��
��
�
00000000  0d 00 0a 16 f4 20 47 72  61 70 68 69 63 73 20 4c  |..... Graphics L|
00000010  69 62 72 61 72 79 0d 00  14 04 0d 00 1e 0b dd 20  |ibrary......... |
00000020  f2 6d 6f 64 65 0d 00 28  08 ea 20 46 25 0d 00 32  |.mode..(.. F%..2|
00000030  23 c8 99 20 22 4f 53 5f  43 68 65 63 6b 4d 6f 64  |#.. "OS_CheckMod|
00000040  65 56 61 6c 69 64 22 2c  32 31 20 b8 20 3b 46 25  |eValid",21 . ;F%|
00000050  0d 00 3c 0d 46 25 3d 46  25 20 80 20 32 0d 00 46  |..<.F%=F% . 2..F|
00000060  16 e7 20 46 25 3d 30 20  eb 20 32 38 20 8b 20 eb  |.. F%=0 . 28 . .|
00000070  20 31 35 0d 00 50 2b c8  99 20 22 4f 53 5f 52 65  | 15..P+.. "OS_Re|
00000080  61 64 4d 6f 64 65 56 61  72 69 61 62 6c 65 22 2c  |adModeVariable",|
00000090  2d 31 2c 31 31 20 b8 20  2c 2c 6d 61 78 58 0d 00  |-1,11 . ,,maxX..|
000000a0  5a 2b c8 99 20 22 4f 53  5f 52 65 61 64 4d 6f 64  |Z+.. "OS_ReadMod|
000000b0  65 56 61 72 69 61 62 6c  65 22 2c 2d 31 2c 31 32  |eVariable",-1,12|
000000c0  20 b8 20 2c 2c 6d 61 78  59 0d 00 64 2b c8 99 20  | . ,,maxY..d+.. |
000000d0  22 4f 53 5f 52 65 61 64  4d 6f 64 65 56 61 72 69  |"OS_ReadModeVari|
000000e0  61 62 6c 65 22 2c 2d 31  2c 34 20 b8 20 2c 2c 73  |able",-1,4 . ,,s|
000000f0  74 65 70 58 0d 00 6e 2b  c8 99 20 22 4f 53 5f 52  |tepX..n+.. "OS_R|
00000100  65 61 64 4d 6f 64 65 56  61 72 69 61 62 6c 65 22  |eadModeVariable"|
00000110  2c 2d 31 2c 35 20 b8 20  2c 2c 73 74 65 70 59 0d  |,-1,5 . ,,stepY.|
00000120  00 78 11 6d 61 78 58 3d  28 6d 61 78 58 2b 31 29  |.x.maxX=(maxX+1)|
00000130  0d 00 82 11 6d 61 78 59  3d 28 6d 61 78 59 2b 31  |....maxY=(maxY+1|
00000140  29 0d 00 8c 05 87 0d 00  96 05 e1 0d ff           |)............|
0000014d