INT O8 handler

 BBS: Inland Empire Archive
Date: 09-09-92 (12:21)             Number: 96
From: STEVE GARTRELL               Refer#: NONE
  To: ALL                           Recvd: NO  
Subj: INT O8 handler                 Conf: (2) Quik_Bas
   HEY....Didn't think about something till just now.  If you wish to use
variables in the handler subroutine after the INT ends up
there, you better use those that are DIM SHARED at the
module level.  Otherwise, the compiler will assume stack
variables, and do something gruesome like move a value to
[bp - 12], when that part of the stack is no longer in
use, and only the Big Gremlin In The Code knows where in
memory it'll end up.  It could be really bad, if you were
close to the bottom of the stack...
  In other words, that handler circumvents all of the nice
things that a modern compiler does for you.  You have to
think ASM.
   About half of my mind is starting to say "posting that
was like giving matches to children."  The other half, of
course, is saying "but these children already have flame
throwers...."...|-}
---
 * Origin: RadioLink! Columbus, OH (614)766-2162
QuickBasic! HST/DS (1:226/140)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET