Does anyone have a copy of the NASM.ct file for RadASM? Thanks...
Posted on 2010-12-03 10:33:09 by nothere
Hi,

Just create the file yourself (in /addins dir), it's supposed to be filled manually.

for start put this in it:
{}


later if you feel like it you can put some snippets in it

{useful stuff 1}
xor eax,eax
{useful stuff 2}
nop
~
nop
{}



For example here is my "masm.ct":
{assume}
assume ~:ptr
{assume alot}
assume ebx:ptr ~,edi:ptr ,esi:ptr
assume ebx:nothing,edi:nothing,esi:nothing
{assume nothing}
assume ~:nothing
{clock_start}
counter_begin 1000000,HIGH_PRIORITY_CLASS;REALTIME_PRIORITY_CLASS
~
{clock_end}
counter_end
~
{comment function}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Parameters:
;; Arg1 = pointer to string buffer
;; Arg2 = pointer to string buffer
;;
;; Returns:
;; Nothing
;;
{dialog close}
invoke SendMessage,hWnd,WM_CLOSE,0,0
{forever loop }
.while TRUE

.break .if ~

.endw
{frame none}
OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE
{frame default}
OPTION PROLOGUE:PROLOGUEDEF
OPTION EPILOGUE:EPILOGUEDEF
{ifdef block}
IFDEF ~

ELSE

ENDIF
{inc other}
include gdi32.inc
includelib gdi32.lib
include comctl32.inc
includelib comctl32.lib
include comdlg32.inc
includelib comdlg32.lib
include shell32.inc
includelib shell32.lib
include advapi32.inc
includelib advapi32.lib
{message box}
invoke MessageBox,0,T('~'),0,0
{push regs}
push ebx
push edi
push esi
~
pop esi
pop edi
pop ebx
{repeat ge? inc ecx}
xor ecx,ecx
.repeat

inc ecx
.until ecx >= ~
{repeat s? dec ecx}
mov ecx,~
.repeat

dec ecx
.until sign?
{repeat z? dec ecx}
mov ecx,~
.repeat

dec ecx
.until zero?
{uses esi edi ebx}
uses esi edi ebx
{while a? dec ecx}
.while ecx > ~

dec ecx
.endw
{while be? inc ecx}
mov ecx,~
.while ecx <=

inc ecx
.endw
{while be? macro}
xi = 0
while xi lt ~

xi = xi + 1
endm
{echo dword}
%echo @CatStr(%(~))
{set icon}
invoke LoadIcon,hInstance,1
invoke SendMessage,hWnd,WM_SETICON,ICON_BIG,eax
{WM_COMMAND}
movzx eax,word ptr wParam[0]
movzx edx,word ptr wParam[2]
.if edx == BN_CLICKED
.if eax == IDC_BTN1
~
.endif
.endif
{}


to invoke the popup list press Ctrl+J
Posted on 2010-12-03 17:50:54 by drizz