Search found 434 matches

by janbredenbeek
Fri Jul 01, 2016 11:30 am
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

I would think the easiest way would be to try to read a sector header (MD.SECTR) and if it does a 'normal' (bad medium) return rather than a 'normal+4' (OK) return. Then assume there is no cartridge present. This seems the best way indeed. I've taken a look at the MD.SECTR code and it does wait for...
by janbredenbeek
Fri Jul 01, 2016 1:03 am
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

Martin, Jan, Tobias, .., All Pleanty of feedback I have got, to delve into studying more. Gap 1 (that's the one between the sector header, you've just read, and the start of the block header that you want to overwrite) is 3600us. That's three and a half thousands of a second. Just curious, how many...
by janbredenbeek
Thu Jun 30, 2016 6:31 pm
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

Hi All, I didn't realise that there is a way to force a re-read of the MDV map: Use the TK2 DEL_DEFB command! This clears all physical definition blocks (including stored MDV maps) so the MDV driver must re-read everything! I believe it was included in TK2 to reduce heap fragmentation (physical defi...
by janbredenbeek
Thu Jun 30, 2016 6:22 pm
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

I was somehow able to write sectors from the very start, but I was failing to see the results, as I realised I needed to remove just written OLD cart, put a NEW one in, do DIR on it - to trigger MEDIA CHANGE, put the OLD back, this possibly is the effect of RANDOM numbers? Hi Tomas, I wrote an exte...
by janbredenbeek
Thu Jun 30, 2016 5:49 pm
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

I think calling fs_flush might help? Perhaps? I'm not near a QDOS manual so I might be wrong! Cheers, Norm. FS_FLUSH works at file level (it writes out buffers, much like doing a CLOSE but without actually closing the file). You can't force a reread of the map or directory unless you resort to dirt...
by janbredenbeek
Thu Jun 30, 2016 5:29 pm
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

Jan, A little personal note, I use QED editor, is it your work? People fond of MetaComco ED may forgive, I prefer QED :/) Tomas Thank you! Speaking of QED: I've been delving in the QED source and object files which have been around in my archives for 25+ years. The version 1.01 which was distribute...
by janbredenbeek
Wed Jun 29, 2016 11:37 pm
Forum: Software & Programming
Topic: MDV Low Level Routines
Replies: 122
Views: 26822

Re: MDV Low Level Routines

This isn't something I have ever actually tried to do, but it sounds like your doing it right. On the subject of the file and block number on the stack. The QL advanced user guide says, "Before MD.WRITE is called , the stack pointer must be set to point to two words. The first word is the file...
by janbredenbeek
Tue Jun 21, 2016 11:28 pm
Forum: QL Emulation
Topic: UQLX with BDI / QL-SD support
Replies: 14
Views: 4602

Re: UQLX with BDI / QL-SD support

Hi QLers, Is it only me or is it true that all the old uQLx distributions plus the two above are not able to be installed and run on recent Linux systems (modern HW platforms, recent 32-bit or 64-bit Linux distributions). I one says one or the other uQLx distribution works could he or she provide a...
by janbredenbeek
Tue Jun 21, 2016 11:08 pm
Forum: Software & Programming
Topic: bv.chrix
Replies: 5
Views: 1564

Re: bv.chrix

Hi Dilwyn, There is no need to round BV.CHRIX requests to an even value since it will always be rounded up to the nearest multiple of 16 bytes (JS) or 64 bytes (Minerva). This mechanism is explained in the Minerva manual and source code (see bv\chstk.asm). That said, strings on the RI stack should o...
by janbredenbeek
Thu Jan 22, 2015 6:02 pm
Forum: The Welcome Area
Topic: Hello from the Netherlands!
Replies: 17
Views: 5396

Re: Hello from the Netherlands!

Welcome, Jan! Seeing that Basicode screenshot reminded me of the days when home computer programs were so popular they were actually broadcasted on the radio. Younger members might not know that, but (starting in the Netherlands and then spreading all over the continent) radio programs were actuall...