Download Pelles C here: http://www.pellesc.se
Quote from: ander_cc on April 27, 2026, 03:38:57 AMIf I want to use "Surround by" and "Comment" and "No comment", I should select a line first.Why? I don't see the point.
Could you add a "auto select current line" feature?
Quote from: ander_cc on April 27, 2026, 03:38:57 AMCould you add some shortcuts for "Surround by" and "Comment" and "No comment" ?"Tools" -> "Customize" -> "Keyboard" --> "Source" is a good start.
Quote from: ander_cc on April 27, 2026, 03:38:57 AMI want to use $0 twice or more. Could you add it?Again, why? You can only surround something once...
You cannot view this attachment.
.386
.model flat,stdcall
option casemap:none
include SMCtest.inc
.data
str1 db '80 + 20 = %u',0
.code
start:
call main
invoke ExitProcess,0
main PROC USES esi edi ebx
LOCAL pMem:DWORD
invoke VirtualAlloc,0,4096,\
MEM_COMMIT or MEM_RESERVE,\
PAGE_EXECUTE_READWRITE
mov pMem,eax
mov edi,eax
mov esi,OFFSET Calculate
mov ecx,ProcLen
rep movsb ; Copy the procedure Calculate
; to virtual address space
lea ecx,[eax+4]
; Modify the procedure
mov BYTE PTR [ecx],_ADD
push 80
push 20
call eax
invoke printf,ADDR str1,eax
invoke VirtualFree,pMem,0,MEM_RELEASE
ret
main ENDP
OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE
Calculate PROC a:DWORD,b:DWORD
mov eax,DWORD PTR [esp+8]
sub eax,DWORD PTR [esp+4]
retn 2*4
Calculate ENDP
OPTION PROLOGUE:PrologueDef
OPTION EPILOGUE:EpilogueDef
END start
Page created in 0.030 seconds with 13 queries.