BBS: Inland Empire Archive Date: 02-10-93 (18:06) Number: 389 From: VICTOR YIU Refer#: NONE To: TOM HAMMOND Recvd: NO Subj: Re: Help W/In-Line Code Conf: (2) Quik_Bas
>>> Regurgitating Tom Hammond to All <<< TH> 'NOTE: This code WILL NOT run as-is. Please see Part 1 of 2 for TH> ' decsription of problem. What you have to do is to replace your "CALL ..." with "CALL ABSOLUTE ..." That is the QB/VB equivalent to calling some in-line assembly code. I will not guarantee total compatability, because the way GWBASIC and QB handles inlines stuff is differrent... First of all, you have to define the segment of the string you are going to modify (in the 'Modify drive to clean) one by doing a: DEF SEG = VARSEG(Clean$) before the POKE (so it pokes in the right place...). Also you will have to use VARSEG(Clean$)/SADD(Clean$) to find out the address of the string in-line code to call. That is what you pass to CALL ABSOLUTE so it can execute it. You can look at QB's on-line help for more info. Victor ... Have you crashed your Windows today? --- Blue Wave/RA v2.10 [NR] * Origin: Hard Disc Cafe / Houston Texas / (713) 589-2690 / (1:106/30.0)
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