Browse Source

+ added Mem[] support to the ZX Spectrum system unit

git-svn-id: branches/z80@45098 -
nickysn 5 years ago
parent
commit
6088f4a882
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/zxspectrum/system.pp

+ 6 - 0
rtl/zxspectrum/system.pp

@@ -28,6 +28,12 @@ interface
 
 
 {$endif FPUNONE}
 {$endif FPUNONE}
 
 
+var
+{ Mem[] support }
+  mem  : array[0..$7fff-1] of byte absolute $0;
+{  memw : array[0..($7fff div sizeof(word))-1] of word absolute $0:$0;
+  meml : array[0..($7fff div sizeof(longint))-1] of longint absolute $0:$0;}
+
 { OpenChannel(2) opens the upper screen
 { OpenChannel(2) opens the upper screen
   OpenChannel(1) opens the lower screen
   OpenChannel(1) opens the lower screen
   OpenChannel(3) opens the ZX Printer }
   OpenChannel(3) opens the ZX Printer }