لدي ثلاث برامج صغيره واريد من الاخوان مسلعدتي في جمعها في برنامج اسمبلي واحد
1- LDX #12 ; print 12 chars
LDY #0
LOOP
LDA HELLO,Y ; String starts at HELLO, indexed by Y
JSR OUTCHAR
INY
DEX ; decrement counter
BNE LOOP ; and test for 0
2 - lw $t0, x #load x from memory
lw $t1, y #load y from memory
add $t0, $t0, 5 # x + 5
sub $t0, $t0, $t1 # x + 5 - y
mul $t0, $t0, 35 #(x + 5 - y)*35
div $t0, $t0, 3 #(x + 5 - y)*35/3
3- mov esi,edx
xor cl,cl
shld edx,eax,1
shld esi,eax,2
adc cl,0
xor edx,esi
xchg eax,edx
xor dl,cl