--------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4D00020Date: 04/08/97 From: CHRISTOPHER HANKINSON Time: 07:06pm \/To: KEVIN BARROW (Read 3 times) Subj: File access through Dos. In recent you and Iam Moote were talking about how people learn. Just one question, I learn from seeing examples and understanding how they work. I think that is the best way to teach people. You give them an example, and the understand how it works. The best way I would think is that, and you get your students to teach you how they would do it. I don't know what you were talking to Ian Moote, but I can understand that he wants your experience. What I would sugest is writing an example. Sort of Construct a pie chat. Let him understand it. I see that people want you to help them. You know why you are experienced, that is why I asked my sysop to post this. Because I am starting asm, It helps me tons, that people know hot do Program in asm,etc. I may ask people for to make me a program. But I am not talking about a real program like a demo that I can understand..... ;-) Thanks, For you experience, and Time,(Sorry It was so long) Mind Crash Christopher Hankinson --- ProBoard v2.15 [Reg] * Origin: Gentle Breeze BBS Cliffside, N.C. (704)657-6898 (1:3667/7) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E00000Date: 04/06/97 From: PHIL QUINTON Time: 08:18am \/To: CAREY BLOODWORTH (Read 3 times) Subj: Serial Chip / Modem contr PQ>>Can someone tell me, or suggest any document, about PQ>>manipulation the serial chip in assembler. I haven't got a PQ>>clue. CB> I would recommend that you _don't_. CB> Although the basics aren't too hard, it can be a pain, CB> especially when you try to do it correctly, and support all CB> the variations. CB> I'd recomend trying to find a ready made library to link into CB> your code. Let somebody else worry about the details. That's a cop out! I can get those libraries, but I wanted to do it myself. The reason being is that my modem is a HSP controller less and I am considering writting a Dos Driver for it. I will obviously have to see If I can get some tech info from PC-Tel which might be slightly difficult :-) I assume all I need to know is which address's to IN & OUT to and what is at those addresses. then I have to right all the serial access etc.. I'll need to link the serial ports to the DSP chip and do all the handshaking etc.. in software.. That's why I need to know how to access the serial chips, 'cause no libraries are available for controllerless modems.. Git! -=> Phil <=- --- * Origin: Phil Quinton (2:250/607.96) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10151Date: 04/10/97 From: DAY BROWN Time: 01:02am \/To: DOS USERS (Rcvd) (Read 3 times) Subj: R: SCREEN MODE SURVEY 1. THIS SHOULD BE YOUR TOP LINE. What follows is a survey to find out 2. what most of us use in our qwk mail readers. I have a little tool 3. that replaces the foreign ASCII (...) bitmaps with diagonal and 4. curved line & block segments so that we would have much more to use 5. in email besides the *stars* for emphasis and the hi-ASCII IBM box 6. chars (...) for illustrations. But, there is a problem 7. with diagonals and circles which need more than one char to show. 8. For instance, consider a 45 degree diagonal line in an 8X8 or 8X14 9. Charcacter bitmap box(es): 10. ....... .............. If you see this msg on a 25 11. ....... ............... line screen, the right line 12. ....... ............... looks more like a 45 degree 13. ....... ............... angle, if a 50 line screen, 14. ....... ............... the left one will. 15. ....... ............... 16. ....... .............. BTW: if slashes '\' & '/' 17. ....... ............... are close, and if you make 18. One Char ............... the pattern for it extend 19. in 43/50 ............... all the way to the corners 20. line mode. ............... of the char bitmap, a line / 21. ............... of them make conection / 22. .............. and will be smooth, not / 23. two adjacent chars dashed / 24. on a 25 line screen 25. If you run Windows, you got a problem; I've no idea what size font 26. you are using, so you'd need to do this with each one, cause I'm way 27. too busy the way it already is. FYI: if you wanna try it, you may 28. wanna give some thot to what to do with the esc, (ASCII 27) and the 29. EOF, (ASCII 28) or other control codes. 30. 31. Personaly, I like characters 12 pixels high best; evenly divisible 32. by 2,3,4,&6, you can get smooth (unjagged like the right one above) 33. diagonal lines at several more different slopes. But, that makes a 34. VGA screen 40 rows high- anybody else use this? 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. So is your bottom line down here someplace? 49. 50. ... OFFLINE 1.50 --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10152Date: 04/09/97 From: JOHN BALESHISKI Time: 11:12pm \/To: IAN MOOTE (Read 3 times) Subj: File-Access Tutorial IM> others in this conference. I'd like to get a few people who know very IM> little about file-access to read it and let me know if it's readable IM> and that I've explained things well enough, but I'd also like to get a IM> few old-hands to read it for accuracy as well as readability. Are we talking about file access not using int 21/13, or what? If ou are not using those interrupts, then feel free to email it to c@nworks.com. ... "Yield to temptation, it may not pass your way again" - Lazarus Long --- GEcho 1.11+ * Origin: Phone Henge [203-673-6247 USR/V.34+] Unionville,CT (1:142/212) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10153Date: 04/09/97 From: MODERATOR Time: 04:40pm \/To: BARRY BLOCK (Read 3 times) Subj: encoded messages BB> Great! Please add this to the Echo Rules, James. No need to, it's not prohibited. The next moderator might have other ideas, but we've been doing the UUE thing for a long time here. Yousuf Kahn used to post a FAQ of sorts every month, uue'd. The echo was a lot busier then, we used to see 40-50 messages a day and saw many questions repeated. Work on an internet email list has begun again and in the testing stages. This will gate 80XXX to the readily available $internet$. We may once again see the traffic increase to the point of needing a FAQ again someday, if all goes well. If anyone is curious, send a blank email to 80xxx-on@circuit.com and you will be subscribed. I *am* nervous about it. Don't ask. ;-) Anyway, I'd like to restrict the methods to UUE and Zip.. It's a matter of convenience; most people have Pkzip already and David Kirschbaum gave us a small uudecoder that can be easily posted if need be. I'd also like to limit the contents to ascii files only, and no BBS related FILE_ID's and the like. This echo is not to be used to transfer files. Source codes only, please. :-) BB> I have noted various answers to how long a post can BB> reliably be. 85 ,150, and you think 200? Well, you've BB> been here a long time, so maybe you know... I *think* 99% of the reader software can handle 200 lines before the message gets chopped off. Old SLMR had a limit of 150, but I don't see it used much anymore. Does anyone want to comment on any of this? --- timEd 1.01 * Origin: James Vahn (jvahn@short.circuit.com) (1:346/15.1) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10154Date: 04/09/97 From: JERRY COFFIN Time: 09:59pm \/To: OLIVIER DAGENAIS (Read 3 times) Subj: Delays On (08 Apr 97) Olivier Dagenais wrote to Flemming Sondergaard... OD> I don't think the NOP operation is pairable with any other OD> instruction, (so that it would be executed in the other OD> pipeline) since the instruction would lose its purpose... Some of Intel's documentation for the Pentium agrees with you. You're both wrong, but at least you're in really good company. It still retains one purpose: aligning instructions to, e.g. paragraph boundaries. Later, Jerry. ... The Universe is a figment of its own imagination. --- PPoint 1.90 * Origin: Point Pointedly Pointless (1:128/166.5) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10155Date: 04/10/97 From: FLEMMING SONDERGAARD Time: 01:05am \/To: ANDREW SPROTT (Read 3 times) Subj: Extra Space. Cool! This is like... mail or something! Once upon a time (Saturday, April 5, 1997 to be precise), Andrew Sprott wrote a letter to Flemming Sondergaard about "Extra Space."... FS>> I once compared REP MOVSD to this method: FS>> loop_000: FS>> mov ax,ds:[si] =14 FS>> add si,4 =4 FS>> mov es:[di],ax =16 FS>> add di,4 =4 FS>> dec cx =2 FS>> jnz loop_000 =16 AS> =56 AS> You don't need the ds prefix. Oops! FS>> And REP MOVSD _was_ the slowest of the two. Just like AS> Is it? Yes! AS> rep =2 AS> movsw =9+17 AS> =28 It seems faster, yes, but things such as cache, instruction overlap etc. should also be taken into account. FS>> loop label AS> Don't you mean loope? Er... I don't know, I've always used LOOP. LOOP is AFAIK assembled as LOOPZ (LOOPE the way it should look :-). FS>> is slower than FS>> dec cx FS>> jnz label AS> By one clock cycle. But at the expense of load time... Well, something named a prefetch-something takes care of that along with the cache. FS>> ___,/| FS>> \ o_O| - Flemming Sondergaard FS>> =(_|_)= FS>> U AS> My dog is lop-eared. Are you sure? :-) ___,/| \ o_O| - Flemming Sondergaard =(_|_)= U --- Terminate 4.00/Pro * Origin: I don't care if I'm a lemming, I'm not going! (2:237/45.15) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10156Date: 04/10/97 From: FLEMMING SONDERGAARD Time: 01:11am \/To: ANDREW SPROTT (Read 3 times) Subj: Extra Space. Cool! This is like... mail or something! Once upon a time (Saturday, April 5, 1997 to be precise), Andrew Sprott wrote a letter to Flemming Sondergaard about "Extra Space."... BM>>>>> second of all, why aren't you doing these as REP MOVSW instructions? FS>>>> It's slower than moving the data "manually". AS>>> Is it? FS>> It most certainly is. :-) AS> No it isn't. Well, it has been every time I've tested it. AS> with 8086 do Hmm... could these be the remains of some truncated sentence written long ago? :) AS> My examples were based on a single pass, in which case the method AS> below would suffice. AS>>> mov es,ax,o dest_seg ;2+4 clocks AS>>> mov ax,w source ;10 clocks AS>>> es mov w dest,ax ;12 clocks AS>>> ;=28 clocks AS> But for moving more than one item, you would need to add the AS> instructions to increment the index registers and decrement cx, AS> which makes it slower. No, these would overlap the move operation, just as the first two (three :) instructions would overlap if AX wasn't used in both. FS>> BTW. MOVSW is not very flexible. AS> Yes it is, In what way? Anyway, it can not be _more_ flexible than your own example above. AS> and it makes your program more compact, thus preventing viruses AS> shrinking your code and copying infected code to your executable. That should be the least of your worries, shouldn't it? :-) AS> ... "Hi, I'm a tagline virus. Please copy me!" ... "Hi, I'm a tagline virus. Please copy me!" ___,/| \ o_O| - Flemming Sondergaard =(_|_)= U --- Terminate 4.00/Pro * Origin: Is that an XT? Oh, you're running Windows 95. (2:237/45.15) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4E10157Date: 04/08/97 From: DENIS BOYLES Time: 11:58am \/To: SYLVAIN LAUZON (Read 3 times) Subj: Bosskey.Asm 1/ ;[BOSSKEY.ASM] - v1.00 Public Domain (pd) 1997 by Denis Boyles ; ! Arrowsoft Assembler v1.00D (MASM v3.0) ; ? A demonstration "hot-key" TSR program that utilizes the NDOS ; flag. The program is a "Boss Screen" that's activated by ; pressing ALT-SYSRQ. Upon entry, INDOS is checked to see if ; it's safe to call DOS functions. ; ; If it's safe, the progam saves the current text screen, ; clears it and displays the "Boss Screen". Which is nothing ; more than a "Command Prompt" lookalike. Pressing a key will ; restore the screen and return to the interrupted program. ; ; * ALT-SYSRQ checking requires AT+ computer. ; CGA+ is required for the save/restore of the screen. ; Video mode changes are NOT intercepted, so be careful. KEYBOARD EQU 16h ;define KEYBOARD services interrupt DOS EQU 21h ;define DOS services interrupt LF EQU 0Ah ;define linefeed character CR EQU 0Dh ;define carriage return character DUL EQU '$' ;define dollar sign string terminator PRG SEGMENT ASSUME CS:PRG,DS:PRG ORG 0100h ;[START]------------------------------------------------------------------- ; DOS Program Entry Point. START: jmp main