--------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00000Date: 05/04/97 From: PHIL QUINTON Time: 09:42am \/To: DAY BROWN (Rcvd) (Read 2 times) Subj: Serial Chip / Modem contr PQ>> So I want to write some DOS Drivers. DB> you sure this is worth it to you? Not alot. It would make things alot easier, I wouldn't have to run programs out of windows that use the modem. I think it would be good programming experience DB> CPU stinks to high heaven. Seems like they've made modem DB> chips with 32k of code on them which took teams many months DB> to code. This is true, but if I could make even a limited driver, it would be better than none at all. DB> would not do anything in DOS. And, now we got Linux, OS/2, DB> OPENDOS, and god only knows how many OS's will show up... you DB> gonna do code for them? Is Java gonna affect it? This is also true. The reason for coding a dos driver would mean that I could take the algorithms and stuff and code a linux driver. Linux drivers would be easier to intercept IO call. -=> Phil <=- --- * Origin: Unix isn't an Operating System, It's a way of life! (2:250/607.96) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00001Date: 05/06/97 From: BARRY BLOCK Time: 01:55am \/To: FLEMMING SONDERGAARD (Read 2 times) Subj: Bosskey.Asm - sysreq.asm Hello Flemming, BB> I don't see the problem. push,then pop. Stack is not altered, right? FS> No, but what if SS:IP pointed to, say, 0000:0038 (keyboard interrupt FS> vector)? FS> That would cause a interrupt problem, don't you think? :) Your code was cs:ss How is this different from push cs, pop ds, then ss? It is the same thing. Well, I may be wrong, but, not needed anyway, as the stack is the same on return from Int 2E. Kind regards, Barry * Origin: EBO-BBS A'dam +31-20-6002828 (2:280/901.42) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00002Date: 05/06/97 From: BARRY BLOCK Time: 02:00am \/To: FLEMMING SONDERGAARD (Read 2 times) Subj: tsr Hello Flemming, FS> Anyway, if you want me to, I could probably make your program work, FS> but I'd have to reformat the code somewhat and you probably wouldn't be FS> able to read it afterwards (no offence :-). Should I try, though? Sure. I don't have a problem about any of this. I took a program by Denis and tried to make it more versatile. If you can solve all the problems of making the perfect shell prog, great! I was only trying to learn something anyway :) Kind regards, Barry --- Terminate 4.00/Pro * Origin: EBO-BBS A'dam +31-20-6002828 (2:280/901.42) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00003Date: 05/07/97 From: FLEMMING SONDERGAARD Time: 10:40pm \/To: N.FERRI@AGORA.STM.IT (Read 2 times) Subj: Re: External Programs Hmm... it looks like mail... mmmh, it tastes like mail... it _is_ mail! Once upon a time (Tuesday, May 6, 1997 to be precise), N.Ferri@agora.stm.it (huh?) wrote a letter to All about "Re: External Programs"... [..] N> cmdtail db 3," a:",0dh N> cmdtail db 2,"a:",0dh N> None of the above works. Why ? What's wrong with it ? Perhaps your assembler just doesn't like my code. I suspect some assemblers might have problems with dword-pointers like: address dd other_adress Which assembler do you use? ___,/| \ o_O| - Flemming Sondergaard =(_|_)= U --- Terminate 4.00/Pro * Origin: <<< This message has God's seal of approval >>> (2:237/45.15) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00004Date: 05/08/97 From: SANDER SMEENK Time: 09:12am \/To: N.FERRI@AGORA.STM.IT (Read 2 times) Subj: External Programs Hi N.Ferri@agora.stm.it, 06 May 97 01:03, N.Ferri@agora.stm.it wrote to All: NF> (sys a:). I always get the message "important parameter missing" :( You must type SYS C: A:. So SYS.COM knows to get the system files from C: and to put them on A:. Gegroet, [PGP ID : 1024 / 633A17807697608D-BB701E2F9CAB6E6D ] Sander [InterNet: Sander@TAF.XS4ALL.NL ] [Moderator BASIC.028 + MODULES.028 ] ... Really honey....just 1 more message. --- UNREG UNREG * Origin: %[ Infinity System BBS - 033-494 3146 ]% (2:283/507) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00005Date: 05/08/97 From: BARRY BLOCK Time: 11:58am \/To: N. FERRI (Read 2 times) Subj: Re: External Programs Hello ? N> I'm trying to launch sys.com with the command tail a: (sys a:). N> switch. I wrote it the following way: N> cmdtail db 3," a:",0dh N> What's wrong with it ? Have you tried... cmdtail db 10,"sys.com a:",0dh Kind regards, Barry * Origin: EBO-BBS A'dam +31-20-6002828 (2:280/901.42) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00006Date: 05/08/97 From: JOE KOSS Time: 05:03am \/To: JOHN GARDENIERS (Read 2 times) Subj: Re: DOS return code (Errorle > Hi Denis, > > -=> 01 May 97 15:08, Denis Boyles wrote to John Gardeniers <=- > > JG>> According to RB's interrupt list INT 21h, function 4Dh will r > JG>> the return code from the previous program. > > DB> So they say. > > I suspect they've simply left out a couple of important points, > such as exactly when the routine will or won't work. [snip] > DB> It would appear that the function is only valid directly after > DB> execute the program. On the commandline, the program is being > DB> executed from the shell. Which in turn would get the exit code > DB> and store it away for the ERRORLEVEL. > > That's about the way I see it. Command.com (or alternative) > swallows the last return code. Just to make matters even worse, > Command.com doesn't appear to return anything other than a zero > when you use it to execute it's built-in commands (copy, dir, > etc.), even if there are problems. This is the situation: Any time a program "INT 21/4C"'s .. the error level gets set. When you "SHELL" to DOS with a command (basically an EXEC "COMMAND.COM ....") the last program to execute a 21/4C is command.com The function is returning command.com's exit code. When you "EXEC" a program, things are entirely different as there isn't the middle-man (command.com) .. --- GEcho 1.02+ * Origin: Midnight Madness <-> Hartford, CT (1:142/8076) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00007Date: 05/06/97 From: BRIAN MCCLOUD Time: 05:30pm \/To: REJEAN LAMBERT (Read 2 times) Subj: Pure asm help needed! RL>I'm fairly new to assembler (not quite a year), and up to now, i've only RL>used it with the turbo languages (inline asm). Now I have written a program RL>entirely in assembler, but within Turbo Pascal. It goes like this: RL>program Doofus; RL>begin RL>asm; RL>... RL>end; RL>end. RL>What do I have to change to turn my tp-inline program into a standalone SM RL>file that would compile with TASM or MASM ? with TASM you could do something like this: ****** IDEAL ; use TASM's "ideal" mode - somewhat different syntax for operators and ; for directives SMART ; let TASM handle PUSHing/POPping multiple constants on one line, and ; automatic macros to emulate higher-processor instructions MODEL LARGE, PASCAL ; let it automatically take care of the segments and the ; stack frame STACK 1024 ; allocate a stack with plenty of room for interrupts ; personally I'd recommend against making a stack too small, but that's up to ; you. CODESEG P286 ; tell it to compile in 286 mode STARTUPCODE ; TASM built-in macro to prepare the data, stack, and code ; segments for the appropriate model ; then here goes the assembly code, minus the delimiters pascal need EXITCODE ; TASM built-in macro to appropriately exit the program, with exit ; code in AX. END ****** RL>BTW the program is a speedy version of the Munching Squares ( Y = X xor T ). RL>Uses 2 bytes of stack space (push 0a000h, pop es) that could easily be RL>removed. No variables, no memory allocation. It's as plain as you can get. * OLX 2.2 * There are no skeptics in hell. --- PCBoard (R) v15.3/M 10 * Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E5D00008Date: 05/08/97 From: UWE DREGER Time: 12:09pm \/To: REJEAN LAMBERT (Read 2 times) Subj: Pure asm help needed! Hello\\), RL> What do I have to change to turn my tp-inline program into a RL> standalone ASM file that would compile with TASM or MASM ? RL> BTW the program is a speedy version of the Munching Squares (Y=X xor T). RL> No variables, no memory allocation. It's as plain as you can get. I would suggest to link it to a COM file (not an EXE). RL> program Doofus; RL> begin RL> asm; RL> ... RL> end; RL> end. You could rename your PAS file into ASM and fudge your existing code into this frame: --->8---------------------------------->8--------------------------------->8-- - .model tiny .386 .code org 100h Begin: ... ret End Begin