The MASM Forum

Projects => Rarely Used Projects => RadAsm IDE Support => Topic started by: learn64bit on August 06, 2022, 03:46:34 PM

Title: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 06, 2022, 03:46:34 PM
Tampering a very old RadASM.
Have fun!
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 06, 2022, 03:47:59 PM
zip limited, so add another post
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 06, 2022, 04:03:50 PM
Unzip to D:\RadRAM2212Test\
Masm32 in D:\MASM32\
Windows 7 SP1 us
Microsoft Pinyin Input (10.1.7601.0)
NSimSux(win7sp1's simsun.ttc, name be changed from NSimSun to NSimSux, 0 character be changed with a forward slash, so it's easy to identify 0 and O) font
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 09, 2022, 06:25:37 PM
How to:
Unzip to D:\RadASM2212Test

What's it:
Special version for Tiny Screen and Alt+C toggle Column Selection (aka. Block Edit Mode)

Why you tampering it:
Don't know why, Maybe just I can. You wanna tell me how big your screen is? Okay... but it's not mine!

Post source code:
Yes, but wait for me delete my comments (it's a lot shit, 25MB size...)
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 17, 2022, 05:41:58 PM
Another quick and dirty fix.

FileBrowser(Alt -> V -> P -> The "File Browser" Button)
 RadASM.exe.cmd
  Ctrl + MouseLButtonDoubleClick
   Open in Hex Editor
    This is wrong!  It should be open in TextEdit as a Text file (maybe a batch programming language in a anothor time).
     Okay, Fixed.
  Shift + MouseLButtonDoubleClick
   Open in HexEdit still works.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on August 20, 2022, 05:01:33 PM
I think if you can post your input and font settings, than maybe we can make:

Re: RadASM v2.2.1.2 for Masm32 test for Japanese
Re: RadASM v2.2.1.2 for Masm32 test for Russian

Of cause I don't know that is possible yet
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 10, 2022, 02:33:30 AM
Another quick and dirty fix.
Can not find "^i", "^I", "^m" and "^M".
 Fixed.
Alt -> e -> a or f
 Replace or Find
  Find what
   Regular string
    ^i or ^I
     VK_TAB (tab character)
      File and memory TAB key is the 09h byte
    ^m or ^M
     VK_RETURN (end of line mark, special: last not empty line did not have the mark in file but have in memory)
      File is the 0D0Ah word
      Memory is the 0Dh byte
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 11, 2022, 11:47:57 PM
Text file's code-page convertion tips.


Text file's code-page "Windows 1252"'s special characters which are not compatiable with "Chinese Simplified (GB2312) 936"
 A4h "¤"
  This byte is ok, it will be convert to 0A1E8h word.
 ABh "«"
 AFh "¯"
 BBh "»"
 FDh "ý"
Text code-page "Windows 1251"'s special characters which are not compatiable with "Chinese Simplified (GB2312) 936"
 A0h " "(俄罗斯全角空格)(Russian full-width space character)

Chinese Simplified (GB2312) 936
 2 bytes full width characters
  一二三四五六七八九十百千万亿兆
  壹贰叁肆伍陆柒捌玖拾佰仟微亿兆
  〇
  零
  吉拍太艾
  吉皮太阿
  纳毫厘分
 2 bytes half width characters
  āáǎà
  ōóǒò
  ēéěè
  īíǐì
  ūúǔù
  ǖǘǚǜ
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: bluedevil on September 12, 2022, 05:40:06 AM
Can you write this letter: ğ Ğ
This is g with breve (https://en.wikipedia.org/wiki/%C4%9E)
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 12, 2022, 09:01:16 AM
don't know the Windows code-page, font, input method.

I guess:

0BBh byte ğ
 code-page is Latin 3 (iso-8859-3) 28593
 font is Microsoft YaHei (Language: Turkish)
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 13, 2022, 11:22:26 PM
Keyboard shortcuts
 Ctrl+Alt+End
  Toggle the Splitter Bar in middle of window
 Ctrl+Shift+Up
  Move the splitter up
 Ctrl+Shift+Down
  Move the splitter down

Regular strings
 ^
  Beginning of line
 \t
  Tab
 \n
  Enter
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 14, 2022, 11:33:20 PM
Regular String
 $
  End of line
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 15, 2022, 03:36:03 PM
Another quick and dirty fix!
 Deal with chinese gb2312 two bytes and half width characters.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 18, 2022, 01:24:00 AM
Another quick and dirty fix.
 Deal with jj2007 style masm source code file.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: zedd151 on September 18, 2022, 02:02:50 AM
Deal with jj2007 style masm source code file.
I was expecting some type of reformatting source code but all I see in the attachment is a .dll. How exactly are you making these changes? Wheres the source code?
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 18, 2022, 02:12:07 AM
"Post source code:
Yes, but wait for me delete my comments (it's a lot shit, 25MB size...)"

This need time, maybe I should finish my 64 bit convertion first. then no need to do this(no meaning for me, just wast my time, and very boring), sorry for that.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: zedd151 on September 18, 2022, 02:20:18 AM
Yes, but wait for me delete my comments
I was just wondering, since I won't even try to run any .exe or .dll without knowing what has been added to it. Without seeing source code for it, most users here would also probably not run either; or at the very leasy run it through some antivirus software first.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: jj2007 on September 18, 2022, 02:46:56 AM
Deal with jj2007 style masm source code file.

Where did you dig out that one?  :biggrin:
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 18, 2022, 02:50:29 AM
It's "TinyRTFeditor", for me its a weird style! haha!

For everyone: Thanks for reading my post!
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 19, 2022, 06:33:26 AM
Fix the "括号" bug!
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 19, 2022, 06:35:14 AM
limited, and add new post
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 20, 2022, 11:27:09 PM
Another quick and dirty fix
 The ";" comments after include/includelib
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 21, 2022, 06:14:23 AM
Fix the "^  " bug!
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 22, 2022, 05:15:49 AM
Fix another "Find" bug.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 22, 2022, 11:20:51 PM
Fix the ";~" bug.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 23, 2022, 01:39:22 AM
Hope no more bug be captured by anyone!

New playground:

Deal with the MASM source code files
 Step 1 - Text formats
  Text file detection, then convert to RadASM format (Windows text file format)
   Windows - PC
    0D0Ah - CR/LF - Enter
     2 bytes
   Linux/Mac OS(new) - Unix / Mac OS X
    0Dh
     1 byte
   Mac OS(old) - Mac OS 9
    0Ah
     1 byte
 Step 2 - Text encodings
  Encoding convertion - Code-page convertion
   1251 to 936
    1251 to WideChar, then WideChar to 936
     WideChar to 936
      Should prompt the translation or deleting
       Should prompt the line number and byte number in line
   1252 to 936
    1252 to WideChar, then WideChar to 936

Maybe should add UTF8 (without BOM[Byte Order Mark]/Signature)

Damn, somebody already found a bug (Ctrl+Alt+O opened ".rc" checked the "end" keyword)...
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 29, 2022, 02:10:57 PM
My mouse broken on me!
How do I use RadASM now?

You can just use your keyboard.

Added F6 to switch Focus on EditA/B.

Keyboard shortcuts
 Ctrl+Alt+End
  Toggle the Splitter Bar in middle of window
 Ctrl+Shift+Up
  Move the splitter up
 Ctrl+Shift+Down
  Move the splitter down
 F6
  Goto another SubWindow (Up Window / Down Window)
 Ctrl+Up/Down
  Scroll window
 Ctrl+G
  Goto line
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 30, 2022, 11:23:48 AM
Modified menus a little bit.

And try to deal with Find in files and File encodings convertion.
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on September 30, 2022, 11:27:14 AM
size limited
Title: Re: RadASM v2.2.1.2 for Masm32 test for chinese
Post by: learn64bit on October 01, 2022, 05:29:53 AM
Keep doing RadASM menus clean up