hi guys what are you doing ? it's first post and first question for me ...so if i can ask ? I understand ALP commands and i memorize it very well but when it came to do .. i can't understand what to do and how to .. !! so any one in there can tell me or advice me as a beginner how to deal with it correctly .. i will show some examples of what makes me upset of ALP it maight be a simple but i dont feel the same toward it .. when we say : MVI B 09 'should i choose register B to load to it or can i choose any ??' after doing CMP M for example 'what should we state after compare, the carry flag or zero flag i know if A<M carry set and so on ,but how we specify the condition and by the way these commands from question says find the largest number out of set of 10 numbers? ' i hope you guys understand what am trying to ask and i would appreciate your help .. thank u,
I suggest you learn and use grammar first. Use capital letters and full stops, and only use question marks where you're asking a question. Don't try to type as you would speak in casual conversation. Also spell out words in full. Using txtspk mks u snd lk a teenage girl. and it's unnecessary if you've got a full keyboard in front of you. The choice of register will depend on the functionality attached to that register. If you need to perform mathematical operations on a number and only A is available to the ALU then you should load A. If all registers are available to the ALU then the choice is down to whichever register is available. Your CMP question made virtually no sense, the only thing I could deduce from it was that you're way out of your depth, and if you're on a course you should see your teacher and tell them you're completely baffled. Finding the largest of a set of 10 numbers is dead easy. Work out how you might do it on paper first. Restrict yourself to the abilities of the microprocessor; don't just look along the list and say "that one". You'll need to tell it where to start looking, then you'll need two variables, one for the size of table and one for the maximum number found. Loop over the table looking at each value in turn and comparing it with the current maximum (for which you'll need to think up a suitable initial value). If the current maximum is less than the table entry, replace the current maximum with the value in the table.
thanks by the way ist bothering you if i can't write in GOoD EnGlIsH lik you do.. can you teach me a lil bit..