TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
QBASIC - Assembly
Posted by regretfuldaydreamer [send private reply] at July 21, 2002, 01:33:29 PM All I hav to work on this summer is a 386 with 25mhz, 8mb ram and 300mb hard disk, don't laugh, I have a perfectly good computer back home(we have a holiday house)
I need to know how to put assembly instructions into QBASIC. I'm in a rush so Ill explain more later
Posted by CodeRed [send private reply] at July 21, 2002, 01:36:29 PM Can you? I've never seen it done.
Posted by regretfuldaydreamer [send private reply] at July 21, 2002, 01:44:33 PM You can, It was breifly mentioned in some cryptic way that only an expert (in assembly) can understand in my book, but I didn't have a clue what it meant. Can u do it in QuickBASIC
I just downloaded that, and I'm using a proper computer to read this site by the way just in case ne ones wondering
You can definately do it, I just don't know how. I think it involves setting aside some memory, somehow putting the instructions in there and then using the CALL ABSOLUTE - memory address method
Ne one know?
Posted by regretfuldaydreamer [send private reply] at July 21, 2002, 01:50:07 PM Come to think of it, does n e one know of any DOS or WIN3.1 compilers and interpreters that'll fit onto a single floppy. Its fun working with ancient computers. It'd be nice to learn some ancient languages(I've nothing better to do with my time.)
Posted by CViper [send private reply] at July 21, 2002, 01:50:28 PM I hope he wasen't refering to ram-code: thats an awful lot of work...
Posted by Neumann [send private reply] at July 21, 2002, 01:51:35 PM I've done it once using NASM and QuickBasic 4.5. You can link an assembly routine to QuickBasic. I don't remember how I called it though but I remember that I had to consider that the function had to considered like a farproc in C.
CALL ABSOLUTE would also work too but I believe it's much less flexible.
In QuickBasic 4.5, there is also CALL INTERRUPT that me be useful. I used it to load the mouse with Basic.
Posted by Neumann [send private reply] at July 21, 2002, 01:52:33 PM I've got a crappy old K&R C compiler that I could send you if you wanted.
Posted by vladimir_l [send private reply] at July 22, 2002, 01:40:41 AM I have loads of old stuff , just ask anytime I can send you stuff for 386/286/186 , those computers totally rule.
Posted by vladimir_l [send private reply] at July 22, 2002, 01:41:05 AM If its win 3.1 you could run a 32-bit emul on it.
Posted by eXorcus [send private reply] at July 23, 2002, 10:46:42 AM You can run ASM programs with call absolute if you pass it the ASM program as bytecode in a string. =P I did it once by typing the program in debug and then writing down the bytecode from the memory dump...real messy.
You can use MASM or TASM to write the ASM program and compile it as an OBJ file, then link that into a LIB file for use with QB, but you'll need QB45 if you're going to do that. If you want to see the DOS commands for linking it and example ASM libraries for QB, try http://www.qb45.com/ or http://www.neozones.com/ and download some of the graphics libs like Dash, DirectQB or Future.Library. They come with full source, and you should be able to figure it out from those libs. =)
Register as a new user