| RuneStorm http://www.runestorm.com/forums/ |
|
| Eergh~ College Life Kills... http://www.runestorm.com/forums/viewtopic.php?f=6&t=35971 |
Page 1 of 1 |
| Author: | DK [ Sat May 12, 2007 10:12 pm ] |
| Post subject: | Eergh~ College Life Kills... |
... Especially for CS Majors... I'm currently learning Assembly Language, and it's really, really hard. If you guys are wondering where I've gone for the past few days, this is the reason. MOV DL, 54H INT 21H MOV DL, 68H INT 21H MOV DL, 69H INT 21H MOV DL, 73H INT 21H MOV DL, 20H INT 21H MOV DL, 53H INT 21H MOV DL, 55H INT 21H MOV DL, 43H INT 21H MOV DL, 4BH INT 21H MOV DL, 53H INT 21H MOV DL, 21H INT 21H |
|
| Author: | Mr.UglyPants [ Sun May 13, 2007 8:01 am ] |
| Post subject: | Eergh~ College Life Kills... |
Umm... what in the haystacks of hell does that mean? |
|
| Author: | SX [ Sun May 13, 2007 2:44 pm ] |
| Post subject: | Eergh~ College Life Kills... |
Oh crap.... (head explodes) |
|
| Author: | Yokelassence [ Sun May 13, 2007 5:30 pm ] |
| Post subject: | Eergh~ College Life Kills... |
DK is testing us, how many forumites does it take to understand Assembly language? Lets see, from what I gather these are coordinates of sort. Hot or cold? |
|
| Author: | Mr.UglyPants [ Sun May 13, 2007 5:39 pm ] |
| Post subject: | Eergh~ College Life Kills... |
Hot or cold. Is medium close? |
|
| Author: | DK [ Sun May 13, 2007 7:03 pm ] |
| Post subject: | Eergh~ College Life Kills... |
It's actually the VERY BASIC of Assembly Language: printing out text in the DOS prompt. Sorta like the COUT of C++ and PRINT of QBasic, but this time you have to make use of hexadecimal ASCII codes for EACH CHARACTER. |
|
| Author: | Yokelassence [ Sun May 13, 2007 7:09 pm ] |
| Post subject: | Eergh~ College Life Kills... |
Hahaha! Good lord that is murder, this post alone involves 132 instances of 0-255 I hope you dont have to print reports using that |
|
| Author: | Mr.UglyPants [ Sun May 13, 2007 7:10 pm ] |
| Post subject: | Eergh~ College Life Kills... |
DK wrote: It's actually the VERY BASIC of Assembly Language: printing out text in the DOS prompt. Sorta like the COUT of C++ and PRINT of QBasic, but this time you have to make use of hexadecimal ASCII codes for EACH CHARACTER.
Wow, sounds like a lot of work. |
|
| Author: | Tyster [ Mon May 14, 2007 3:31 pm ] |
| Post subject: | Eergh~ College Life Kills... |
I must admit that that is completely unintelligle to me. Are you trying to set the state of certain bits or pins? I can recall from when I was learning to program a microcontroller to coordinate the movements of a robot, we used to do a lot of bit manipulations. For example, if we want to modify some states for the bits in port A, where we clear bits 1 and 2, and set bits 3 and 4, we do this: PORTA = PORTA & ~(PA1 | PA2) | PA3 | PA4 Looking at your assembly code lines, such as: MOV DL, 54H INT 21H , what does each term mean? Are you modifying the 54'th bit of the MOVDL register? I notice that 0X54='6' and 0X21=§. Are those the characters you are trying to output in those two first line of code? |
|
| Author: | Yokelassence [ Mon May 14, 2007 5:07 pm ] |
| Post subject: | Eergh~ College Life Kills... |
They are the instructions DOS used to display key characters on the screen upon keypress if we are to believe DK Each number represents a single letter/number/special character |
|
| Page 1 of 1 | All times are UTC - 6 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|