I'm wondering, Does assembler support if staments? (like a C program) Tried something very simple:
org 0h sjmp BEGIN org 50h BEGIN: IF R0 == #45 MOV A, #54 CPL A ELSE MOV A, #45 CPL A ENDIF END
"I using a AT89C51 ... One of the goals is to make the circuit smaller then I don't use external ROM ... No I can't change the uController!" Why not? You say you're making the circuit smaller - that must mean a hardware re-design, so why not take advantage of that and choose a variant with more on-chip ROM?! You could fit about three modern QFP derivatives with probably >64K flash each into the space of a 40-pin DIP! - not to mention the external ROM!!
It's easy to change de project now, but my teacher will not allow it. I did buy a 32kbytes chip on past week(before start writing the code), but if you are a teacher you must understand that he wants to learn assembly(or he is just being sarcastic hehehe), yesterday I past all day optimizing the code, I did remove a lot of useless staff.
"It's easy to change de project now, but my teacher will not allow it ... I did remove a lot of useless staff." Was that teacher amongst the useless staff?!... ;-)
heheheh Thank God he does not look the code...he would complaint a lot!!!
heheheh Thank God he does not look the code...he would complaint a lot!!! In doing so, he will do you a favor. I GUESS you are going to school in order to eventually get a job and, in that case, it is not "complain a lot" but "go to the unemployment line". Erik