Page 1 of 1
Quite tricky
Posted: Wed Jul 06, 2005 6:28 pm
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.
Posted: Wed Jul 06, 2005 7:49 pm
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

Posted: Thu Jul 07, 2005 1:30 am
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
Posted: Thu Jul 07, 2005 9:45 am
by {Nathan}
Who was that?
Posted: Thu Jul 07, 2005 7:50 pm
by Antoni
It was me. I forgot to register again...