Jun 23, 2015 #1 P panda1234 Full Member level 2 Joined Jan 22, 2015 Messages 125 Helped 4 Reputation 8 Reaction score 4 Trophy points 18 Activity points 1,172 Hi, I want to create this expression in assembly how to do that? for example: if(i<10) ...
Jun 23, 2015 #2 F FenTrac Full Member level 5 Joined Jul 6, 2014 Messages 248 Helped 50 Reputation 102 Reaction score 54 Trophy points 1,308 Location West Coast Activity points 4,226 Code: ;if(i < 10) CLR C MOV A, i SUBBB A, #0AH MOV A,( i + 1) SUBB A, #00H JNC skipifnotless ; { code to do if i is less than 10} skipifnotless:
Code: ;if(i < 10) CLR C MOV A, i SUBBB A, #0AH MOV A,( i + 1) SUBB A, #00H JNC skipifnotless ; { code to do if i is less than 10} skipifnotless: