Author Topic: SuperH Notepad++ extension  (Read 4253 times)

0 Members and 1 Guest are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
SuperH Notepad++ extension
« on: July 27, 2011, 05:01:39 am »
Apparently no one's done a language definition for SuperH yet, so I spent about an hour tonight and wrote one for Notepad++. To use it, import the file by clicking on the menu icon crossed by a lightning bolt in the middle icon bar and hit import. Opening the file will allow Notepad++ to access it and it will automatically use the syntax highlighting for files with a ".sh3" extension. To use the file with other extensions after importing it, simply click on Languages > SuperH.

The syntax will highlight all SH-3 commands and all normal registers, as well as special registers, comments, and handles subsections (use "{" and "}"). Keep in mind that there must be a space between arguments in order for the arguments to highlight properly. For example:

Quote
Good:
mov.l @r1, r2

Bad:
mov.l @r1,r2


Hope it's useful.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: SuperH Notepad++ extension
« Reply #1 on: July 27, 2011, 05:22:10 am »
Cool Qwerty! I wish there were for more text editors, like what Deep Thought made ;) Nevertheless, thanks!

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: SuperH Notepad++ extension
« Reply #2 on: July 27, 2011, 04:44:06 pm »
Yay notepad++ coding ftw! My favorite language now on my favorite text editor ;D

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: SuperH Notepad++ extension
« Reply #3 on: August 26, 2011, 04:31:38 pm »
Can you use it to program th 9860's superH processor?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: SuperH Notepad++ extension
« Reply #4 on: August 26, 2011, 06:34:19 pm »
Sure. The instruction set is basically the same.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: SuperH Notepad++ extension
« Reply #5 on: August 26, 2011, 08:54:09 pm »
That's cool!



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: SuperH Notepad++ extension
« Reply #6 on: August 27, 2011, 01:14:47 am »
One thing I wonder is if it's possible to mix the SuperH language definition with the C definition cause I often do a lot of inline asm in my programs. That way I could get the proper hi lighting for each section of code on a single source file

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)