Welcome Guest [Log In] [Register]
Welcome to Usc_compe2007. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Programs Section !; feel free to post ur programs
Topic Started: Dec 9 2004, 05:35 AM (217 Views)
Director Kurama
Member Avatar

Technology Heretic
peepz have u already made the palindrome program and the vowel detection program in asm.......

i have made a program in palindrome but i have still bugs to fix it.......l

end:
int 020 :(
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
kishimii
Member Avatar
Administrator
Admin
hmm ako ala pa intawn! /swt
faita oi ^_^
Posted Image
Offline Profile Quote Post Goto Top
 
Director Kurama
Member Avatar

Technology Heretic
here is my snippet for the palindrome

transfer:
mov si,offset buff
sub di,2

repet1:
mov al,b[di]
mov dh,b[si]
cmp al,dh
jne messg2

cmp bx,1
je messg

add si,2
sub di,2

dec bx
jmp repet1

lets say : hannah
b[di] points at h of the first h of hannah
den b[si] points at the last letter h of hannah
add si, 2
sub di, 2
hannaH --- b[di] sub di,2 --> hannAh hanNah haNnah
Hannah --- b[si] add si,2 --> hAnnah haNnah hanNah

den b[di] is stored to al while b[si] to dh for latter comparison
cmp al, dh
if not equal so its not a palindrome.............

thats my understanding of the problem and my approach to it :huh:
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Protoss Templar
Member Avatar
adiktus level 5
hehehe... wa ko paki sa program.. para lang musaka akong rank ni post ko ani. :P
Offline Profile Quote Post Goto Top
 
Protoss Templar
Member Avatar
adiktus level 5
pero nice bya ang program... keep it up int20h... whoever you are. ;)
Offline Profile Quote Post Goto Top
 
Director Kurama
Member Avatar

Technology Heretic
:unsure: what would come out for the practical test for those who are under of engr. bandalan ermmmm..........

:ph43r: im pretty sure possible test would be the running name around the screen, palindrome and consonant count on a string .....

:huh: good luck peepz
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Director Kurama
Member Avatar

Technology Heretic
:( im pretty nervous for tomorrows exam huhhuhuh

Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
silvermoon
Member Avatar
adiktus level 2
those under n engr bandalan sa lab, logic, study mo ug himo ug circuit using NAND & NOR gates, & ayaw jud mo paglangay ug answer ky gamay ra ayo ang 15 min... most of us na human exam kay 1 to 2 lang ka prob ang complete ug solution... kay usually dili mahuman ang pag wire sa ckt ky nadugay sa pagsolve... GOOD LUCK!
Posted Image
Offline Profile Quote Post Goto Top
 
Director Kurama
Member Avatar

Technology Heretic
hmmm ye ye bonel /..... / mam balquin has given her students another challenge hmmmm.,........

the scrolling of the screen and comparing strings......
Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
Director Kurama
Member Avatar

Technology Heretic
how to scroll the screen...
u may modify if u want to...

mov ax,0b800
mov ds,ax
mov es,ax

mov cx,80
std
run1:
push cx
mov di,79*2
mov si,78*2
mov cx,24
run2:
push cx,si,di

mov cx,79
run3:
lodsb
stosb
dec si
dec di
loop run3
mov al,' '
stosb
pop di,si,cx
add di,160
add si,160
loop run2
pop cx
call delay
call delay
call delay
call delay
loop run1
int 20h


delay:
push cx
mov cx,0ffffh
delay1:
push cx
mov cx,200
delay2:
loop delay2
pop cx
loop delay1
pop cx
ret

Posted Image
Posted Image
Offline Profile Quote Post Goto Top
 
KhulGet
Member Avatar
adiktus level 5
grabeh!!! kami loops paman mi..... di-in man mo kuha og mga resources pra sa inyong program?? libro?? c",) :unsure: :unsure:
Posted Image
Offline Profile Quote Post Goto Top
 
JiN
adiktus level 4
wla nay source bai.. analyze ra na nya apply sa program.. gamit ra btaw na og loops.. heheü
Offline Profile Quote Post Goto Top
 
Int20h
Member Avatar
adiktus level 2
stos byte stos byte man hmmmm maau ning tawhana...... kami tawn ni bandalan crawl oi ............. pero ok lang
Offline Profile Quote Post Goto Top
 
JiN
adiktus level 4
klaro kaau kani si int20h student ni siya ni maam balquin.. heheü wara sigi sad og sit-in sa klase ni maam balquin.. heheü :P
Offline Profile Quote Post Goto Top
 
KhulGet
Member Avatar
adiktus level 5
basta programing hisgottan.. kana c jin ang kasaligan... c",) ;) :ph43r: <_< ;)
Posted Image
Offline Profile Quote Post Goto Top
 
« Previous Topic · Other Subjects · Next Topic »
Add Reply