Weird problem writing buffer 1 of a 8250 drive
Date: 2008-09-03 11:55:28

Hallo allemaal,

Please have a look at the following Basic code:

 100 open1,8,15
 200 for i=0 to 10 : print i;
 210 print#1,"m-w:"chr$(i)chr$(18)chr$(1)chr$(i) : next

 400 for i=0 to 10
 410 print#1,"m-r:"chr$(i)chr$(18)
 420 get#1,a$ : if a$="" then a$=chr$(0)
 430 print a$;" "; : next

FYI: $1200-$12FF is buffer 1, $12 = 18

The idea is quite simple: poke some values into Buffer 1 of a 8250 drive
and to read them back again. Whether I run it on a real drive or VICE,
the program frees after producing the numbers 0 and 1 on screen,
outputted by line 200.
Skipping line 200 and 210 by inserting "110 goto 400" shoows the
contents of the programmed memory area.

I ran the program on a C64 and a 1541 in VICE as well (changed 18 to 5).
With the "goto" things run fine, without it line 400-430 only produce 11
times the value 199. 

Very obviously something is wrong with the lines 200-210 but I simply
cannot seem to find the error. 

HELP !!!  TIA!

    / __|__
   / /  |_/     Groetjes, Ruud
   \ \__|_\
    \___|       URL:


De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de 
geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te 
nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit 
e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken. 
Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige 
overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij 
overgebrachte virussen.

APG Algemene Pensioen Groep NV is gevestigd te Heerlen en is ingeschreven in het handelsregister van de Kamer van Koophandel Limburg onder nummer 14099617

The information contained in this e-mail is confidential and may be privileged. 
It may be read, copied and used only by the intended recipient. 
If you have received it in error, please contact the sender immediately by 
return e-mail; please delete in this case the e-mail and do not disclose it's 
contents to any person. We don't accept liability for any errors, omissions, 
delays of receipt or viruses in the contents of this message which arise as a 
result of e-mail transmission.

APG Algemene Pensioen Groep NV is registered in the trade register of the Chamber of Commerce Limburg, The Netherlands, registration number: 14099617

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.