penis Offline Posts: 19 Enter your age program « on: August 23, 2011, 02:56:11 am » ________________________________________ Code: [Select] org 100h mov ah, 9 mov dx, str1 int 21h mov ah, 1 int 21h mov ah, 9 cmp al, 37h jz age_same jg age_older jl age_younger jmp after age_same: mov dx, str2 int 21h jmp after age_older: mov dx, str3 int 21h jmp after age_younger: mov dx, str4 int 21h jmp after after: mov ah, 4Ch int 21h str1 db ENTER YOUR AGE: $ str2 db 0Ah, Wow. You and I are the same age.$ str3 db ! 0Ah, You are older than me, pal. Cool!$ str4 db 0Ah, I am older than you, haha!$s This marvelous program asks for your age, compare and then outputs a message base on how old you claimed to be. Problem is I cant type much than one character... so in this program you cant be older than 9 years old. Logged blustering Kotler NASM Developer Hero Member Country: ...If you want to get a safe essay, mark it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.