Quite tricky

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
User avatar
Zamaster
Veteran
Posts: 174
Joined: Wed Jun 15, 2005 1:51 pm

Quite tricky

Post by Zamaster »

Here is a rather tricky and most likely impossible question: Is it possible to duplicate INTERRUPT and INTERRUPTx in ASM? Kudos to any who can figure this onw out.
C:\DOS
C:\DOS\RUN
RUN\DOS\RUN
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

I'm not a guru in assembler (wish I was and working at it but not there yet) but yes you can call interrupts in ASM it's even quicker in ASM because you don't have to worry about working with a TYPE def for the interrupt just move your values and call the interrupt

move AX, $0109 ' setting mode to 132x25 lines
int 10

should do the trick (give or take an instruction ;-)
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Guest

Post by Guest »

EVERYTHING can be translated to assembler, as all you code is finally converted to assembler...Perhaps you need to call interrupts from QB 1.1?

MystikShadows gave you the idea. Probably you will need too to save registers and pass variables to your asm routine.

I recommend you to browse the ABC packets, perhaps in the Interrupt section, you will find plenty of code there.
http://www.qbasicnews.com/abc/

You can check my site too, in my jpeg viewer (the fast one) I used an asm routine borrowed from ABC packets to call intrrupts so the code would run in QB1.1
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

Who was that?
Image
Antoni
Veteran
Posts: 132
Joined: Wed Jun 15, 2005 3:01 pm
Contact:

Post by Antoni »

It was me. I forgot to register again...
Post Reply