News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RadASM 2.2.0.8 bugtest

Started by KetilO, March 09, 2006, 09:28:50 AM

Previous topic - Next topic

KetilO

Get it here:

http://www.radasm.com/Upload/RadASM2208.zip

Whats new:

o Improved Collapse / Expand (Code folding).
It will now work with unnamed nested structures and unions.
You need to manually update assembler.ini

Example masm.ini
[CodeBlock]
1=$ proc,? endp,,,6
2=.if,.endif,.elseif,.else,0
3=.while,.endw,.break,,0
4=? struct,? ends,,,2
5=? struc,? ends,,,2
6=? union,? ends,,,2
7=$ macro,endm,,,14
8=.code,,,,16
9=.data,,,,16
10=.data?,,,,16
11=.const,,,,16
12=BEGIN,END,,,0,1
13=Method,MethodEnd,,,6
14=Object,ObjectEnd,,,4
15=Switch,endsw,Case,Default,0
16=;##\,;##/,,,4

Also to parse named unions make this change in section {Code]
{Code]
Struct=? ends,$ struct,$ struc,$ union

o Updated RAEdit custom control.
IMPORTANT:
Version 1.1.0.0 of RAEdit introduces collapse/expand blocks that are not backwards compatible.
- Use REM_ADDBLOCKDEF message or call SetBlockDef to set block definitions.
A parameter of 0 resets the block definitions.
There can be a maximum of 32 block definitions.
- REM_SETBLOCKS does not have any lpRABLOCKDEF parameter and needs only be called once
for a newly opened file.
- REM_COLLAPSE and REM_COLLAPSEALL does not have any lpRABLOCKDEF parameter.
- Added word group to RABLOCKDEF. Different files can have different RABLOCKDEF's
For RadASM .rc files are wordgroup 1, all other are wordgroup 0.
Example masm.ini
[CodeBlock]
12=BEGIN,END,,,0,1

o Incrased max block definitions from 16 to 24.
o The 19 menu items limit on tools menu has been incrased to 32.
0 The 0 to 9 limit on project file parameter on tools menu is removed.
o Rearranged position of OK / Cancel buttons on several dialogs.
o Fixed bug in project wizard where wrong templates could be shown.
o Updated and fixed bugs in text link manager addin.
o New style manager addin. Use it to change dialog and control styles.
o Moved the ReallyRad menu item down on the option menu.
o Added option dialog to set assembler spesific enviroment variables.
o Added function to center controls in dialog.
o Updated RadASMini.rtf file.
o Added default alignment style to button control.
o Added function to set dialog controls tabindexes.
- LeftClick to set, Ctrl+LeftClick to pick.

KetilO

BogdanOntanu

Now that is much too fast improving  :))
Thank you...
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

ernest33

Hi there...
The site can't be reach  :dazzled:...nothing serious i hope  :red

KetilO

Hi

The site is up again now.

KetilO

yrret

Thank you for the update, but I still can't reach your site yet either ? 
I've tried several times during the day. Message always states it can't be reached.

BogdanOntanu

It does not parse unnamed and / or nested structures corectly :(

When i try to close this


OS_DRIVES STRUC
os_drive_letter dd ? ;C: , D: 
os_drive_type dd ? ;HDD, CD-ROM, Stick, Floppy, Tape, Network share

os_drive_device_nr dd ? ;ATA-0,1,2,3
os_drive_part_nr dd ?
os_drive_part_type dd ? ;code for FAT16,FAT32,NTFS,ISO9660

os_drive_part_start dd ?
os_drive_part_size dd ?

UNION
; FAT32 specific information
STRUC
os_drive_fat_total_sectors dd ?

os_drive_fat_rezerved dd ?
os_drive_fat_cluster_size dd ?
os_drive_fat_cluster_root dd ?
os_drive_fat_nr dd ?

os_drive_fat_start dd ?
os_drive_fat_size dd ?
os_drive_fat_data_start dd ?

ENDS ; <--- code folding stops here *****************************

; ISO9660 specific information
STRUC
os_drv_iso9660_total_sectors dd ?
os_drv_iso9660_sector_size dd ?
os_drv_iso9660_root_sector dd ?
os_drv_iso9660_root_size dd ?
ends
ENDS

OS_DRIVES ENDS


my tasm.ini section is like this:


Code=? endp,$ proc
Const={C},$ equ,$ =,$ textequ
Data={C},$ db,$ dw,$ dd,$ dq,$ df,$ dt,$ byte,$ word,$ dword,$ qword,$ real4,$ real8
Macro=endm,$ macro
Struct=? ends,$ struc, $ union
Label={C},$ :
Local={C},local $

[CodeBlock]
1=$ proc,? endp,,,6
2=.if,.endif,.elseif,.else,0
3=.while,.endw,.break,,0
4=$ struc,? ends,,,0
5=$ union,? ends,,,0
6=$ macro,endm,,,14
7=.data,,,,16
8=.data?,,,,16
9=.const,,,,16
10=.code,,,,16
11=;##\,;##/,,,4


In version 2.2.0.6 it was folding the upper level struture ok ... but only if is used the structure name before ENDS
In version 2.2.0.8 is is not folding corectly. No matter what i do it is stopping at an intermediate level ENDS.

Ah, and the intermediate unnamed STRUC'sand UNION are not folded... they do not even show the "+" or "-" folding option.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

KetilO

Hi Bogdan

Change:
4=$ struc,? ends,,,0
5=$ union,? ends,,,0
To:
4=? struc,? ends,,,0
5=? union,? ends,,,0

This means that the name is optional.

KetilO

KetilO

Hi all

New upload

o Updated RAEdit custom control.
  IMPORTANT:
  Version 1.1.0.0 of RAEdit introduces collapse/expand blocks that are not backwards compatible.
  - Use REM_ADDBLOCKDEF message or call SetBlockDef to set block definitions.
    A parameter of 0 resets the block definitions.
    There can be a maximum of 32 block definitions.
  - REM_SETBLOCKS does not have any lpRABLOCKDEF parameter and needs only be called once
    for a newly opened file.
  - REM_COLLAPSE and REM_COLLAPSEALL does not have any lpRABLOCKDEF parameter.
  - Added word group to RABLOCKDEF. Different files can have different RABLOCKDEF's
  For RadASM .rc files are wordgroup 1, all other are wordgroup 0.
  Example masm.ini
  [CodeBlock]
  12=BEGIN,END,,,0,1
o The 19 menu items limit on tools menu has been incrased to 32.
0 The 0 to 9 limit on project file parameter on tools menu is removed.
o Updated and fixed bugs in text link manager addin.

KetilO

KetilO

Hi all

New upload:

o Incrased max block definitions from 16 to 24.
o Moved the ReallyRad menu item down on the option menu.
o Added option dialog to set assembler spesific enviroment variables.
o Added function to center controls in dialog.
o Updated RadASMini.rtf file.

KetilO

BogdanOntanu

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

nathan

Hi Ketil O

I have noticed a display problem with FreeBASIC

The function separator lines (and the folding) are wrong if a function returns a value using "function = return_value" because RadASM sees this as a new function.

For example :
Code:
declare function twice(x as integer)
declare function thrice(x as integer)

'main
Print twice(5)
Print thrice(5)
sleep

function twice(x as integer)
   return 2 * x               '<==== OK
end function

function thrice(x as integer)
   function = 3 * x        '<=== displayed as new function
end function

Just a display issue, the rest works great.

Regards - Nathan

KetilO

Thanks nathan

Modifying section [CodeBlock] in fb.ini file solves the problem (add a $ here and there).

[CodeBlock]
1=function $,end function,,,7
2=sub $,end sub,,,7
3=if,end if,else if,else,0
4=while,wend,,,0
5=do,loop,,,0
6=select case,end select,case,,0
7=type $,end type,,7

KetilO

nathan


nathan

That works. But I still get a function called "=" in the code window on the right, so I tried modifying the (code) section in fb.ini but I couldn't find a way of solving this.

KetilO

Hi nathan

In section {Code] in fb.ini modify following:

{Code]
Skip={C},declare,function_=


Note the curly in {Code] should be a [

KetilO