Re: Weird problem writing buffer 1 of a 8250 drive

From: William Levak (wlevak_at_sdf.lonestar.org)
Date: 2008-09-03 23:50:05

On Wed, 3 Sep 2008, raycomp wrote:

You also need a semicolon at the end of the PRINT# statement, otherwise 
you will be sending a RETURN character at the end of each print statement.

> Ruud,
>
> There is a colon in your quotes with m-w statement
>
> --Ray
> On Sep 3, 2008, at 6:50 AM, Anders Carlsson wrote:
>
>> Hello,
>> 
>> I tried this program in x64 and got it to work after a while:
>> 
>> 10 OPEN 1,8,15:FOR I=0 TO 10:PRINT I;
>> 20 PRINT#1,"M-W"CHR$(I)CHR$(5)CHR$(1)CHR$(I):NEXT
>> 25 PRINT:REM LINE BREAK
>> 30 FORI=0 TO 10:PRINT#1,"M-R"CHR$(I)CHR$(5)
>> 40 GET#1,A$:PRINTASC(A$+CHR$(0)):NEXT
>> 50 CLOSE 1
>> 
>> Of course I need true drive emulation, but I also had to select a different 
>> type of drive to get it to work first time, i.e. it defaulted to 1541 in 
>> which it only returned 199. Then I changed to 1541-II where the program ran 
>> fine and back to 1541 where it also ran OK. I don't know if the emulated 
>> floppy drive needs to be enabled in some way. Some sources suggest that you 
>> should initialize the drive (I0) before the M-W. Perhaps you could also try 
>> to reset the drive (UJ) to be sure it is in a clean state?
>> 
>> It is true though that when running the same program in xpet and 8250 drive 
>> (using buffer $12), it hangs. I didn't immediately find any document with 
>> the 8050/8250 memory map, but I assume you got the number correct, that the 
>> drive indeed has a RAM buffer in that location?
>> 
>> Best regards
>> 
>> -- 
>> Anders Carlsson
>> 
>>
>>      Message was sent through the cbm-hackers mailing list
>> 
>> 
>
> --
> ---------------------------------------------------------------
> |Raymond C. Bryan  651-642-9890 vox      | The battle is sometimes |
> |Raymond Computer  651-642-9891 fax     | to the small for                 |
> |2402 University Ave   -email:  raycomp         | the bigger they are 
> |
> |St Paul MN  55114    _at_visi_dot_com      | the harder they fall.         |
> |USA              Amiga - Commodore                |     -- James Thurber -- 
> |
> http://www.raymondcomputer.com
> ---------------------------------------------------------------
>
>
>
>
>
>     Message was sent through the cbm-hackers mailing list

wlevak@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.