assembly programming sucks

Orsorum

Lifer
Dec 26, 2001
27,631
5
81
*points and laughs* *looks down at own half finished adv. micro hw and probability hw..* Damn!
 

AgentEL

Golden Member
Jun 25, 2001
1,327
0
0
haha i like assembly... its interesting to see all the lower level stuff at work... it does get really tedious as the programming projects get larger and more complex however
 

brtspears2

Diamond Member
Nov 16, 2000
8,659
1
81
Originally posted by: newbiepcuser
Originally posted by: stev0
assembly programming sucks

yes. yes it does.

push pop push pop

move this move that

Arg, memories of learning assembly. Cafeteria tray dispenser was the only way I could remember this certain kind of data structure. 6 months later, I forget all the assembly I learned, but still remember the joy of accomplishment of getting hardware to multiply two numbers and accept input from a keyboard... :D
 

AvesPKS

Diamond Member
Apr 21, 2000
4,729
0
0
One sentence: Five hours to add five numbers together.

Five freaking numbers!!!!!
 

AvesPKS

Diamond Member
Apr 21, 2000
4,729
0
0
By the way, what chip are you programming for? At my school, EE's use the Motorola MC68000, while the CPE's use MIPS.
 

SunnyD

Belgian Waffler
Jan 2, 2001
32,675
146
106
www.neftastic.com
It ain't half bad provided you know what you're doing.

It's also a VERY useful skill to have if you plan on landing a job out of college.
 

Analog

Lifer
Jan 7, 2002
12,755
3
0
ex_code SEGMENT ; Beginning of the code segment
org 0150h ; originate code at 0250h as the SDK sees it
; remember, the SDK adds 100h to our addresses
;
Begin: mov ax,0010h ; point to beginning of data segment
mov ds,ax ; initialize ds register
mov ax,0010h ; point to beginning of stack segment
mov ss,ax ; set the ss register
mov sp, offset st_top ; initialize the sp for empty stack
;
call cdisp ; clear display

kbdrt: mov al,40h ; setup control code for keys
mov dx,cntrl ; dx = cntrl for 8279
out dx,al ; do it
next: in al,dx ; check if key is pressed
and al,0Fh ; mask lower nibble
jz next ; jump back if nothing there
mov dx,buffer ; key pressed, read buffer
in al,dx ; read it

cmp al,0dh ; check to see if D is pressed
je dpress ; yes it did
cmp al,0ch ; check to see if C is pressed
je cpress ; yes it did
cmp al,0eh ; check to see if E is pressed
je epress ; yes it did
jmp kbdrt ; go back since invalid key pressed
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Zugzwang152
Originally posted by: AznMaverick
CIRCUIT ANALYSIS SUCKS

my roommate bashes his head against the wall doing that sh!t weekly.

yeah, i hate circuit analysis too. Assembly isn't ALWAYS bad... what architecture? MIPS assembly is soooo easy :)
 

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
Originally posted by: CTho9305
Originally posted by: Zugzwang152
Originally posted by: AznMaverick
CIRCUIT ANALYSIS SUCKS

my roommate bashes his head against the wall doing that sh!t weekly.

yeah, i hate circuit analysis too. Assembly isn't ALWAYS bad... what architecture? MIPS assembly is soooo easy :)

Yeah, I love MIPS too. I hope that we are done with it. We had a test on it and I have decided that it is not something I will ever use in my future career. If I do find myself using it, I am in the wrong career. It really makes it easy when you have to write assembly with no way to compile/run it and hardly any sample codes.