Search found 364 matches

by NormanDunbar
Sun Feb 18, 2018 11:49 pm
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

Re: SD_SETPA failes on SMSQ with Invalid Parameter

Hi Jan,

I didn't think it looked right for a channel id, but couldn't think why it troubled me.


Cheers,
Norm.
by NormanDunbar
Sun Feb 18, 2018 10:46 pm
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

Re: SD_SETPA failes on SMSQ with Invalid Parameter

Well, after a few hours hard work, i finally debugged the whole thing. I had one nasty where it ran for ages then just stopped. Same place each time. I couldn't find out why, and tracing it would have taken until the end of time! In the end, I resorted to a utility I wrote years ago for Quanta's &qu...
by NormanDunbar
Sun Feb 18, 2018 3:10 pm
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

Re: SD_SETPA failes on SMSQ with Invalid Parameter

Hi Tobias, I suppose it doesn't help if I'll tell you "this should work".... By "should" do you mean "should work if and when you put the pointer to the scrdef in A0 and not in A1 and call trap #2 to open it rather than trap #1? :D What could upset the QL, however, is your &...
by NormanDunbar
Sun Feb 18, 2018 2:52 pm
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

Re: SD_SETPA failes on SMSQ with Invalid Parameter

pjw wrote:You just created a nice little job there, Norm, not a screen ;)


MT_CJOB, thanks Per. It's funny how you can never spot these things until someone else sees it as so bloody obvious!".

I am, much appreciative - thanks.


Cheers,
Norm.
by NormanDunbar
Sun Feb 18, 2018 2:51 pm
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

Re: SD_SETPA failes on SMSQ with Invalid Parameter

You always call "do_trap1" instead of "do_trap3". No idea how you get any channel this way (should be trap#2)? Oh for f*ck sake!!!! :shock: :shock: :shock: :roll: :? :? 8-) WTF was I doing? Thanks very much Marcel, I looked and looked and checked Pennell and Dickens and still di...
by NormanDunbar
Sun Feb 18, 2018 9:15 am
Forum: Software & Programming
Topic: SD_SETPA failes on SMSQ with Invalid Parameter
Replies: 10
Views: 279

SD_SETPA failes on SMSQ with Invalid Parameter

Morning All, I'm working on some code for the next (exciting) issue of the randomly produced Assembly Language eComic and I've come across a bit of a weird thing happening. SD_SETPA is failing to set green paper. Here's the offending code: size_x equ 512 ; Pixels across (width) size_y equ 256 ; Pixe...
by NormanDunbar
Tue Feb 13, 2018 11:14 pm
Forum: Software & Programming
Topic: Correct Maths Stack usage (CHRIX/RESRI)
Replies: 27
Views: 720

Re: Correct Maths Stack usage (CHRIX/RESRI)

Hi Tofro.

I do have it, bit its a huge A4loose leaf binder rather than a book. I ptrefer books.


Cheers,
Norm.
by NormanDunbar
Tue Feb 13, 2018 9:40 pm
Forum: Software & Programming
Topic: Correct Maths Stack usage (CHRIX/RESRI)
Replies: 27
Views: 720

Re: Correct Maths Stack usage (CHRIX/RESRI)

Thanks Marcel, that worked perfectly. Trap #15 once again brings QMON to the fore. I added a TRAP #15 to DJToolkit's DJTK_VER$ function. This takes no parameters and returns a 4 character string, requiring 6 bytes on the stack. PRINT DJTK_VER$ QMON was activated. A1 was set to zero. PRINT 'xxxx' &am...
by NormanDunbar
Mon Feb 12, 2018 11:50 pm
Forum: Software & Programming
Topic: Correct Maths Stack usage (CHRIX/RESRI)
Replies: 27
Views: 720

Re: Correct Maths Stack usage (CHRIX/RESRI)

Hi Jan,

I'm afraid I disagree. If a function takes no parameters, A1 is not a suitable maths stack pointer until loaded from BV_RIP. I speak from bitter experience.

None of the books mention it.

Unless SMSQ/E is differnt behaviour to QDOS. I feel an experiment coming on.....

Cheers,
Norm.
by NormanDunbar
Mon Feb 12, 2018 10:20 pm
Forum: Software & Programming
Topic: Correct Maths Stack usage (CHRIX/RESRI)
Replies: 27
Views: 720

Re: Correct Maths Stack usage (CHRIX/RESRI)

Looks good to me Martyn. If you have qmon/qmon2, put a breakpoint on it and see what's in A1 before you load it from BV_RIP. It won't be the stack! ;) Qmon used to allow a trap #15 in your code to jump into the qmon monitor. That got removed from qmon2 for some reason. A big omission in my opinion. ...

Go to advanced search