--------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00003Date: 02/24/97 From: ANDREW KENNEDY Time: 06:48pm \/To: ALL (Read 2 times) Subj: Hard drive in sleep mode I snagged the code below from the net, it worked on my Compaq at work, but did not work on a 483-33 clone I have with an IDE drive. Any comments as to why it doesn't always work.(Hardware difference?) If it works on yours, send me a private message or one to andrew-kennedy@hlp.com. Thanks ; With standby or sleep, your harddisk will be turned off until you ; activate it by reading or writing to the harddisk. The activition time ; is shorter in standby then in sleep mode. ; Standby : 94h E0h ; Sleep : 99h E6h ; This works on all IDE-harddisks. Here is the program : .model tiny .code org 100h start: CALL BUSY ; HARDDISK CONTROLLER BUSY ? DEC DX ; DRIVE/HEAD REGISTER MOV AL,0A0h ; A0 FOR MASTER, B0 FOR SLAVE OUT DX,AL CALL BUSY ; HARDDISK CONTROLLER BUSY ? MOV AL,94h ; SEND STAND-BY MODUS (94h E0h) OUT DX,AL CALL BUSY ; HARDDISK CONTROLLER BUSY ? MOV AL,0E0h ; SEND STAND-BY MODUS (94h E0h) OUT DX,AL CALL BUSY ; HARDDISK CONTROLLER BUSY ? INT 20h ; THE END. BUSY: MOV DX,01F7h ; TASK / STATUS REGISTER REPEAT: IN AL,DX ; READ STATUS AND AL,80h ; CHECK BUSY FLAG JNZ REPEAT ; REPEAT WHEN BUSY RET end start --- Blue Wave v2.12 [NR] * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00004Date: 02/23/97 From: M.L. SPARKS Time: 01:00pm \/To: TRAVIS HEIN (Read 2 times) Subj: looking for port addresses TH> I am looking for any info on the internal port addresses of the TH> "standard" pc type computer. Every kind of relivant info is welcome. The interrupt list has a file called PORTS.MAP (or something to that effect) which lists the standard as well as non-standard ports on most PCs. Filename is INTR????.ZIP, where ???? is the revision code. -Mike --- GEcho 1.11+ * Origin: system_name db 0 dup(0) (1:124/8049) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00005Date: 02/22/97 From: JERRY COFFIN Time: 11:00am \/To: JAMES VAHN (Read 2 times) Subj: boot failure On (21 Feb 97) James Vahn wrote to Kurt Wismer... JV> But let's get it right: This is an -*Assembly Language*- Programming JV> Conference/Newsgroup.... Far be it from me to argue with a moderator's word...except when he's wrong...but if you're going to argue terminology, the proper term is "echo", not conference OR newsgroup. To qualify as a newsgrop, the name would have to be much longer - something like: comp.lang.asm.x86.moderated.useful As opposed to the normal `comp.lang.asm.x86.moderated', which would follow the normal Usenet convention of disallowing any useful conversation. 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: E2U00006Date: 02/23/97 From: STEVEN READ Time: 07:11pm \/To: PABLO BARRON (Read 2 times) Subj: 4bh doubt =========================================================================== Packet: PC-OHIO Date: 02-16-97 (22:59) Number: 10975 From: PABLO BARRON Refer#: NONE To: ALL Recvd: NO Subj: 4BH DOUBT Conf: (708) 80XXX-F --------------------------------------------------------------------------- PB> Hi all ! PB> I have a doubt about the function 4bh of the int21h, execute program. PB> When it's done by Dos, does it check if there's enough room to load PB> the program before or after making the int21h ( 4bh ) ? I mean, does PB> Dos ensure that there is enough unallocated memory avaiable before PB> executing ? My guess would be that it is the programmers responsibility. Looking at the Interrupt list by Ralf Brown under 214b, you will find the following note. "the calling process must ensure that there is enough unallocated memory available; if necessary, by releasing memory with AH=49h or AH=4Ah" It appears as if INT21 function 4A reports how much space is available. Later, Steve, in western New York state (USA) --- * QMPro 1.53 * steven.read@pcohio.com --- InterEcho 1.19 * Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00007Date: 02/23/97 From: JEFF BRIELMAIER Time: 10:21am \/To: BRUCE ROESER (Read 2 times) Subj: Real programmers... BR> EN> ... REAL programmers code in Assembler. BR> NH> REAL programmers code in machine language BR> REAL programmers hand-assemble it in hexadecimal. and then put it the computer by: COPY CON PROGRAM.COM * KingQWK 1.05 # [PK] * No program is idiot-proof, idiots are too ingenious! --- Maximus/2 3.01 * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00008Date: 02/24/97 From: SYLVAIN LAUZON Time: 12:01am \/To: ALL (Read 2 times) Subj: int 2f hi! I need an help to figure what these returned codes mean. Function AL = 00 AH = 00 DOS 2.x PRINT.COM (undocumented, see note below) 01 PRINT (undocumented behavior also, see note below) on return: AL = 00 not installed, ok to install = 01 not installed, do NOT install = FF installed I installed PRINT in memory tried AH=00, it returns AL=01 " " " " " " AH=01, it returns AL=FF What AL=01 really mean?? If I believe these statements, it says "not installed" but its totaly untrue! A Big thanks in advance to anyone who can give me the reason of this! --- * Origin: Silicon Palace {514}432-2953 Lafontaine, Qubec (1:242/100) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00009Date: 02/23/97 From: DAY BROWN Time: 03:04pm \/To: CHARLES JOUGLARD (Read 2 times) Subj: Beginning programmer inf CJ> 1. Is there a programming language that is used... CJ> 2. Should he learn Qbasic first? CJ> 3. Any suggestion of books for a beginner? CJ> 4. What Shareware or Freeware programs are available.. CJ> 5. Any other words of advise or wisdom? Lemme begin with number 5... Does he like chess? or better yet Go? Programming is a series of moves, and the exponential complexity drives some folks up the wall, while others intuitively choose a path and fly without getting too strung out when the chosen path is a dead end. I got a minor in comp sci in 1971, and don't recall much respect for those chosen to teach programming. More than any other art, those who seem to have the proclivity for code lack the social skill to pass the knowlege on to students in a class room, and do not suffer fools. Maybe others had a different experience with faculty, but the ones I saw tested for retention of textbook subject matter, but none of the code students produced was judged on the speed of operation, the crash and bug proof level, clarity of source code, and flexibility for future modification. That last point is particularly in demand as code made for mainframes is maintained to keep up with the state of the art. As for example, the hazard in the news of the calendar change from 1999 to 2000. It would appear that faculty was chosen because they could pass tests of textbook subject matter, not because they could code. 4... A86xx.zip has the simplest assembly lang assembler, Ralf Brown's INTERVUE database has is the best source for explaining what the x86 INT(errupts) are all about, NORTON GUIDE is a TSR pop up that lists the characteristics of assembly code terms... NOP, MOV, LEA, STOWB, and other terms in use in assemblers along with ASCII and other tables. The DR DOS x86 OS has SID.COM, way ahead of Mickysloth's DEBUG. 3. I can't think of a single book I ever bought that helped near as much as reading and posting on sigs like this one. 2. Not too long back, I was still gettng blerbs telling me how easy was to use their tools to produce WINDOZ apps, just use the included graphic tool to draw the user GUI screens, and the developement pak would glue all the screens togather for me. Judging by so many of the windoz apps that I have seen, they had a lotta takers. Granted, that the app ran slower than snails and needed hot iron to run, that was no problem cause they had a deal with INTEL to sell new platforms, and we were all supposed to laugh all the way to bank. So, I dunno if any of the conventional languages, C++, pascal, Qbasic really has much future in the face of these GUI compilers on x86 windoz systems. 1. There will be a demand for those who don't exactly program, but do know what the code and hardware can do well, and can recommend a set to get a particular job done fast, cheap, and well. And, there may be a demand as mainframe programmers retire, to figure out what they had done, and to be able to port the code to newer platforms... 0. The hard part of programming is to not reinvent the wheel. ... OFFLINE 1.50 "The greatest teacher, Socrates, never made a dime at it." --- Maximus 3.01 * Origin: TANSTAAFL BBS 717-432-0764 (1:270/615) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00010Date: 02/23/97 From: DAY BROWN Time: 05:00pm \/To: MIKKO HYVARINEN (Read 2 times) Subj: Wait for Vertical Retrac scuse me for buttin in... but would this work in 43 line EGA mode? I have come across SMOOTH.COM & STYPE.COM [from PC MAG] which would replace the DOS TYPE command, and produce beautiful smooth scrolls on a 25 line dos text screen. Neither would support ansi other than the default color, but it sure made the jerkiness of windoz scolls obvious by comparison. If it would work, could I just replace the B800 with a C800 [if I remember the EGA address correctly] MH> mov dx, 3dah MH> @@loop1: MH> in al, dx MH> test al, 8 MH> jnz @@loop1 MH> @@loop2: MH> in al, dx MH> test al, 8 MH> jz @@loop2 MH> MH> Bit 3 of register 3DAh is set when a vertical retrace... Is there a different register too? FYI: I am coding a textmode modem battle strategy game which uses a custom font to replace the foreign letters and junk with symbols used in classic battle maps [e.g. Clausewitz]. You have to use EGA because the VGA does not allow one to use the foreground color in the eighth col of the char bitmaps, which is what Ralf Brown [no relation] told me. If someone knows of an online battle game in real time such that each player may move whether or not his opponent has responded, (as is the case in real battles) lemme know and save me the trouble. this thing is a bear. But if not, then the smoother scroll would be neat. ... OFFLINE 1.50 "I don't need understanding; I want a bimbo, maybe a harem." --- Maximus 3.01 * Origin: TANSTAAFL BBS 717-432-0764 (1:270/615) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E2U00011Date: 02/23/97 From: DAY BROWN Time: 05:12pm \/To: ALL (Read 2 times) Subj: DOS scanner driver? Is there a DOS app that will drive my RELISYS hand scanner? Tell me I don't havta write one please! ... OFFLINE 1.50 "I'm an iconoclast; I hate GUIs." --- Maximus 3.01 * Origin: TANSTAAFL BBS 717-432-0764 (1:270/615)