Programa control sram 4kb

By Miguel_Noe

Champion (465)

Miguel_Noe's picture

26-06-2014, 21:56

http://map.grauw.nl/resources/hbi55.php

 10 ' HBI55.BAS by Bjorn Lammers
20 ' Controlling the
30 ' Sony Data Cartridge
40 '
50 ' Writing
60 INPUT "Adress";AD
70 INPUT "Data";DT
80 ' Control register
90 OUT &HB3,&H80
100 ' Adress low
110 OUT &HB0,AD AND &B11111111
120 ' Adress high
130 OUT &HB1,(AD\256) OR &B01000000
140 ' Data
150 OUT &HB2,DT
160 ' Reading
170 INPUT "Adress";AD
180 ' Control register
190 OUT &HB3,&H89
200 ' Adress low
210 OUT &HB0,AD AND &B11111111
220 ' Adress high
230 OUT &HB1,(AD\256) OR &B11000000
240 ' Read data
250 DT=INP(&HB2)
260 PRINT "Data: &H"+HEX$(DT)
270 END

Alguien sabe porque este programa funciona en un Philips VG8020 y en un Sony HB-20P no funciona, el único valor que lee es 255.

Login or register to post comments