SetUevent and ASM

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
JDat
Newbie
Posts: 2
Joined: Thu Nov 24, 2011 5:54 pm

SetUevent and ASM

Post by JDat »

Hello coders!

I am newbie (new in this forum)-oldie (whiting embeeded code for living)-oldscool (Every DOS user is oldscool). I started program in QBasic 15 years ago. So Now I remember old times etc. I installed FreeDOS and VBDOS on M$ux VirtualPC. It is working, exept mouse wheel (VirtualPC problem, Cutemouse TSR works correclty).

Why VBDOS? I think that VBDOS pseidoGUI element in 80x25 text mode ir one of the greatest GUI thing for dos txt mode display. OK, Notron commander (DOS Navigator, FAR manager, etc) also has great text mode GUI. That is reason why I want to experiment with some QuicBASIC/VBDOS code. I read almost all aricles on Pete's QB Tutorials/Misc section. They are great! Thanks to authors for wrinting and Pete for collecting them!

Ok! Back to business. SetUevent.... Uevent is interesting thing, because it is possible to write ASM IRQ handles and call BASIC routine from IRQ. I saw some examples how to compile and link ASM+BASIC for this.

Problem: How to call from "inline ASM" SetUevent. Inline ASM is when You Poke some machine code in String variable and make caal absolute to that string containing machine code. So, how to call SetUevent in this way. I don't want to compile and link ASM and BASIC code in exe. I want call ASM SetUevent with call absolute tricks.

Also. Is there any hack/trick with ON TIMER GOSUB, but with millisecond interval calls (GOSUBS). Why I need this? Event driven GUI with (wheel) mouse and multithreading. 8)
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

You don't need DOS or ASM anymore with QB64.

www.QB64.net
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
JDat
Newbie
Posts: 2
Joined: Thu Nov 24, 2011 5:54 pm

Post by JDat »

burger2227 wrote:You don't need DOS or ASM anymore with QB64.

www.QB64.net
I know, but... oldschool is oldschool! :D Mess with real mode coding is interesting sometimes. Anyway, I will try QB64 soon.

But... Any suggestions regarding SetUevent in DOS?
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

SetUevent works with interrupts, but a user event can be done quite simply with an IF statement in many cases where a program looks for a set value.

I've NEVER seen it used...
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply