we just started assembly language programming at school and i have no idea about the language as of now. . We are not using any assembler yet. We are basically starting at the basics. our professor gaves an assignment even we have not started coding yet. tried searching the net but unfortunately i dont understand any of it yet.:disappoin:beadyeyes Thankfully i found this website and as i was going over the forums. i can see that you guys really help us each other a lot. so i decided to join and hopefully you can help me learn more about assembly language. >>> here's the assignment : I need to print : 5, 55, 5 5, 5 55, and 5 5 as of know i located the answer for the first question. but i'm confused with the rest. if any of you guys could assist me on this. i'll be in your debt. thanks..
Perhaps it's just an assessment of where you're all at. Was previous knowledge a pre-requisite for the course? If not then snagging a working example off someone on the net won't necessarily help you - it'll give the wrong impression that you already know how to code. Maybe you should mention to your professor that you haven't got a clue, that's why you're on the course, and how does he expect you to complete an assignment when he hasn't given you any skills yet.
yup your right.... actually what i'm doing is studying in advance. i basically looking for the codes to do this then i'll study the codes.. unfortunately i read the book but the book is very confusing.
hmm, so why didn't you say that instead of "our professor gaves an assignment"? Something smells fishy... Sound like you need another book, or perhaps if you've got time to study ahead maybe you should start programming in some other language that's a lot simpler, such as Basic (don't knock it, I started with Basic). Once you've got your head round programming you can then drop into Assembler without too much difficulty.
hehehe.. my bad....:p hehehe. for assembly i dont know anything about it yet. i mean. i stopped schooling for almost 5 years. so when i encountered assembly language it interest me. . so that is why i'm researching. studying in advance. :wacky:. but even though i may need help from people who knows how to. hehehe
Assembly language is highly dependent on the hardware and so there's no single way to print whatever combination of 5's you want, and in some cases there may be no way to print a 5 at all, for example if you've got a PIC connected to a single LED then you can only switch that LED on or off. So what hardware are you using?
actually we are not on hardware yet. basically we are just starting. I mean we are still using DOS prompt to put the codes in.
i think if you guys are starting then you might be starting with 8086, we were taught alp's with that using TASM as the software for it... check your syllabus (ask your teacher or your find out in library), they'll tell you two three reference as well as text books for you to start with... it'll have basic programs which you can start with..
lol. And the DOS prompt is running on what hardware? Or is it just somehow running in empty space? A PC is still hardware. So the instruction set is most likely x86, and for printing characters to the screen you need a software interrupt - don't know which as I don't know much about programming PCs at the assembly level. Google "pc assembly programming" - this returned about 311,000 results when I just tried it and there should be something in there to get you started. These all look relevant: http://en.wikipedia.org/wiki/Assembler_language http://www.freebyte.com/programming/assembler/ http://www.geocities.com/siliconvalley/park/3230/x86asm/asmles01.html - this has TASM examples you can work through and Chapter 8 deals with screen output and INT 21 (the software interrupt for displaying to the screen).