Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 00:04:16 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: assembler directives -  (Read 334 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
z80man
Casio Traitor
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 10 June, 2013, 08:37:04
Date Registered: 26 December, 2010, 10:02:50
Location: City 17
Posts: 966


Topic starter
Total Post Ratings: +83

View Profile
« on: 08 April, 2011, 09:46:12 »
0

As some might know I'm currently working on an SH3 assembler designed primarily around the Prizm. I do need to make sure that I have included all common assembler directives that you use whether it is in computer or calc coding. Here is a list of what I currently have.


1
2
3
4
5
6
7
8
9
#include
#define
.org
data.b
data.w
data.l
align.2
align.4
What I think I'm missing is some of the conditional pre-compiler directives which I will need to add. The other I'm looking for is the symbol used to indicate a new line. I know in C/C++ it is the ; but that is the comment in asm.   Also anything else I'm missing would be good to know.  
« Last Edit: 08 April, 2011, 16:36:01 by z80man » Logged


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)
Ashbad
Guest
« Reply #1 on: 08 April, 2011, 12:26:48 »
0

.org. Is good to use too, same with .reallocate

And there are others, but most people don't use them much, and still they're mostly used for z80 assembly development.
Logged
graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #2 on: 08 April, 2011, 13:32:48 »
0

; actually isn't a new-line character.  And there are two new line characters, one is 1 byte, one is two.  One is a line-break and feed I believe, the other is just a line break.

The 1 byte one is 0x0A, the 2 byte one is 0x0D0A
Logged

z80man
Casio Traitor
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 10 June, 2013, 08:37:04
Date Registered: 26 December, 2010, 10:02:50
Location: City 17
Posts: 966


Topic starter
Total Post Ratings: +83

View Profile
« Reply #3 on: 08 April, 2011, 16:35:42 »
0

.org. Is good to use too, same with .reallocate

And there are others, but most people don't use them much, and still they're mostly used for z80 assembly development.
Ashbad, I can't find the meaning of .reallocate anywhere. What does that do? And the .org was my bad there. But actually unlike on the z80, most people will not use .org because most SH3 code is location independent and I've also been pushing for shell-cross compatibility for all prizm programs.
; actually isn't a new-line character.  And there are two new line characters, one is 1 byte, one is two.  One is a line-break and feed I believe, the other is just a line break.

The 1 byte one is 0x0A, the 2 byte one is 0x0D0A
I was just mentioning how in C/C++ you can start a new line using a ; but that is already reserved in asm for indicating a comment. What I'm looking for is the character allowing you to use multiple commands in one line.
Logged


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)
graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #4 on: 08 April, 2011, 21:19:42 »
0

.org. Is good to use too, same with .reallocate

And there are others, but most people don't use them much, and still they're mostly used for z80 assembly development.
Ashbad, I can't find the meaning of .reallocate anywhere. What does that do? And the .org was my bad there. But actually unlike on the z80, most people will not use .org because most SH3 code is location independent and I've also been pushing for shell-cross compatibility for all prizm programs.
; actually isn't a new-line character.  And there are two new line characters, one is 1 byte, one is two.  One is a line-break and feed I believe, the other is just a line break.

The 1 byte one is 0x0A, the 2 byte one is 0x0D0A
I was just mentioning how in C/C++ you can start a new line using a ; but that is already reserved in asm for indicating a comment. What I'm looking for is the character allowing you to use multiple commands in one line.
Oh, probably \.  That's what it usually is, IIRC.
Logged

Ashbad
Guest
« Reply #5 on: 08 April, 2011, 21:37:01 »
0

.org. Is good to use too, same with .reallocate

And there are others, but most people don't use them much, and still they're mostly used for z80 assembly development.
Ashbad, I can't find the meaning of .reallocate anywhere. What does that do? And the .org was my bad there. But actually unlike on the z80, most people will not use .org because most SH3 code is location independent and I've also been pushing for shell-cross compatibility for all prizm programs.

well, reallocate can be used to change the location of where the address labels and such are being offsetted form, like .org -- but you can use it at any time, whereas with many assemblers, .org doesn't function that way.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.266 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.