Click here to Skip to main content
14,356,466 members

C / C++ / MFC

 
Questionwhy 4 twice Pin
Member 117446405-Jun-15 5:15
memberMember 117446405-Jun-15 5:15 
AnswerRe: why 4 twice Pin
David Crow5-Jun-15 5:19
memberDavid Crow5-Jun-15 5:19 
AnswerRe: why 4 twice Pin
k50545-Jun-15 6:35
memberk50545-Jun-15 6:35 
AnswerRe: why 4 twice Pin
Frankie-C6-Jun-15 7:56
memberFrankie-C6-Jun-15 7:56 
AnswerRe: why 4 twice Pin
Daniel Pfeffer7-Jun-15 4:15
professionalDaniel Pfeffer7-Jun-15 4:15 
GeneralRe: why 4 twice Pin
Stefan_Lang11-Jun-15 4:14
memberStefan_Lang11-Jun-15 4:14 
GeneralRe: why 4 twice Pin
Daniel Pfeffer11-Jun-15 4:54
professionalDaniel Pfeffer11-Jun-15 4:54 
QuestionNeed help with assembly x86 using C language Pin
a random user4-Jun-15 8:23
membera random user4-Jun-15 8:23 
Well after finishing logical gates and making the Computer.hdl
(Nand2tetris)

We started learning about assembly

this is only the second lesson and we learnt so far a bit about offset lea and signed and unsigned

i need help solving this exercise and on the way the explenation why and how because iv been searching tyhe web for 2 days now and i got no luck so far



; Print '15', using ONLY 'mov' and 'lea'.
; Do NOT use arithmetic instrutions (add, inc, mul, etc.)
PRINTN "Part (C) - should print 15"
mov ax,10
mov bx,4



mov cx, lea [ax + bx+1]
mov ax,cx


call print_num
PRINTN

modified 4-Jun-15 14:07pm.

QuestionRe: Need help with assembly x86 using C language Pin
David Crow4-Jun-15 10:47
memberDavid Crow4-Jun-15 10:47 
AnswerRe: Need help with assembly x86 using C language Pin
a random user5-Jun-15 5:35
membera random user5-Jun-15 5:35 
GeneralRe: Need help with assembly x86 using C language Pin
Richard MacCutchan5-Jun-15 6:09
protectorRichard MacCutchan5-Jun-15 6:09 
JokeRe: Need help with assembly x86 using C language Pin
David Crow5-Jun-15 11:33
memberDavid Crow5-Jun-15 11:33 
GeneralRe: Need help with assembly x86 using C language Pin
a random user6-Jun-15 0:58
membera random user6-Jun-15 0:58 
AnswerRe: Need help with assembly x86 using C language Pin
David A. Gray15-Jun-15 20:23
groupDavid A. Gray15-Jun-15 20:23 
GeneralRe: Need help with assembly x86 using C language Pin
a random user21-Jun-15 10:24
membera random user21-Jun-15 10:24 
QuestionMFC,Run as administrator Pin
Janani932-Jun-15 7:55
memberJanani932-Jun-15 7:55 
AnswerRe: MFC,Run as administrator Pin
Richard Andrew x642-Jun-15 8:45
professionalRichard Andrew x642-Jun-15 8:45 
GeneralRe: MFC,Run as administrator Pin
Janani932-Jun-15 9:01
memberJanani932-Jun-15 9:01 
GeneralRe: MFC,Run as administrator Pin
Richard MacCutchan2-Jun-15 22:29
protectorRichard MacCutchan2-Jun-15 22:29 
GeneralRe: MFC,Run as administrator Pin
Janani934-Jun-15 7:58
memberJanani934-Jun-15 7:58 
GeneralRe: MFC,Run as administrator Pin
Richard MacCutchan4-Jun-15 8:04
protectorRichard MacCutchan4-Jun-15 8:04 
QuestionProject / Code conversion from old VS to VS2008+ Pin
charlieg2-Jun-15 4:51
membercharlieg2-Jun-15 4:51 
AnswerRe: Project / Code conversion from old VS to VS2008+ Pin
Maximilien2-Jun-15 7:57
memberMaximilien2-Jun-15 7:57 
GeneralRe: Project / Code conversion from old VS to VS2008+ Pin
charlieg2-Jun-15 9:11
membercharlieg2-Jun-15 9:11 
GeneralRe: Project / Code conversion from old VS to VS2008+ Pin
Maximilien2-Jun-15 9:28
memberMaximilien2-Jun-15 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.