I tried some assembly code running directly and not from Pascal. Traced through the delete and it never came back with ERR_NF.
Sounds like you have similar findings.
Cheers,
Norm.
Search found 2253 matches
- Sun Apr 04, 2021 6:48 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
- Sun Apr 04, 2021 6:45 pm
- Forum: The Off-Topic Section
- Topic: Today I Received...
- Replies: 642
- Views: 289758
Re: Today I Received...
My step father had two new ones in his 30s. Wore them out. Got two more in his 50s. Sadly died of Parkinson's before he wore them out.
Take care.
Take care.
- Sun Apr 04, 2021 4:37 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
Re: QL / PASCAL
Last one for today, I promise! ;) I've resolved the problem with renaming a file on the QL: If "oldfile" doesn't exist, Pascal barfs with runtime error 2 -- file not found. If newfile already exists, Pascal barfs with runtime error 5 -- file access error (sorry, the best I can do!) If oldf...
- Sun Apr 04, 2021 4:24 pm
- Forum: The Off-Topic Section
- Topic: Today I Received...
- Replies: 642
- Views: 289758
Re: Today I Received...
Ouch!
Hope it gets better soon, and is not (too) painful.
Hope it gets better soon, and is not (too) painful.
- Sun Apr 04, 2021 3:29 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
Re: QL / PASCAL
Sunday's Pascal distractions, with thanks to Per and Jan for advice which solved a couple of problems. Fs_posab, fs_posre, fs_truncate and fs_headr were accessing parameters in the wrong order and overwriting some. Reset(), Rewrite() functions now have correct file open modes. Append() also, but thi...
- Sun Apr 04, 2021 2:34 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
Re: QL / PASCAL
So the max legal position one could set is 2^31-65 I've tested this in SuperBASIC with DJToolkit, and using 2^31-65 as the offset, I do indeed get the file position set to the last byte of the file. :) Any higher, and the file position remains at zero (for a newly opened file, with existing content...
- Sun Apr 04, 2021 1:58 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
Re: QL / PASCAL
Interestingly, Pennel states that for relative positioning D1 is signed, but says nothing at all about whether is is/should be signed for absolute positioning. I may have to try and find the source code and see what's what! Maybe!
Cheers,
Norm.
Cheers,
Norm.
- Sun Apr 04, 2021 1:54 pm
- Forum: The Off-Topic Section
- Topic: Happy Easter
- Replies: 5
- Views: 1937
Re: Happy Easter
My wife and I have a Romanian couple as friends and ex workmates. They are into these as well! They are quite beautiful -- much nicer than the ones we used to "paint" (using clotes dye) when I was a kid.
Cheers,
Norm.
Cheers,
Norm.
- Sun Apr 04, 2021 1:05 pm
- Forum: The Off-Topic Section
- Topic: Happy Easter
- Replies: 5
- Views: 1937
Re: Happy Easter
Happy Easter to you too.
- Sun Apr 04, 2021 1:05 pm
- Forum: Software & Programming
- Topic: QL / PASCAL
- Replies: 303
- Views: 77431
Re: QL / PASCAL
Thanks Jan, Per. This is interesting. I wasn't aware that file positions could be signed, for absolute positioning. It makes sense to use signed offsets for relative positions though. The Pascal code must be assuming the same as it passed -1 to go to the end of the file. I'll have a play later. Chee...