Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user bulb ! (Registered 2013-05-23) You are not logged in 
CSDb User Forums


Forums > C64 Coding > Kick Assembler Thread 2
2009-07-21 19:20
Slammer

Registered: Feb 2004
Posts: 295
Kick Assembler Thread 2

The previous thread took a little long to load, so this is a new fresh one..
 
... 414 posts hidden. Click here to view all posts....
 
2011-10-05 05:37
TWW

Registered: Jul 2009
Posts: 283
Feature Request:

Maybee this is a posibility already but here goes:

Allow Suffixes to Pseudocommands according to some fixed syntax.

Ex:

A multiply routine can be called with either:

:MUL_S <- for Signed Mul (suffix being the "_S")

or

:MUL_U for Unsigned (Suffix is "_U").

This is just an example and so is the syntax but it would allow you to put both these routines inside one file instead of two (there would ofcourse have to be some way to use these suffixes inside the pseudo to make descicions).


Another thing:

Did the ".IfDefined" feature requested by someone before see the day of light?


Cheers!
2011-10-05 17:42
Cruzer

Registered: Dec 2001
Posts: 719
TWW: Why not use a parameter for that?
2011-10-05 19:04
TWW

Registered: Jul 2009
Posts: 283
That's what I'm currently doing so yes, this is a luxory feature request 8-D
2011-10-05 19:09
tlr

Registered: Sep 2003
Posts: 850
I thought I'd post a few things I've run in to lately. If the suggestions are too crazy, feel free to disregard them. :)

1:
I tried just now to write a file format header using kick assembler and discovered that there is no pseudo op to output ascii. (.text converts lower case to screen codes.)
	.ascii	"Header Ident!"
	.byte	0
That would be useful!


2:
Consider this:
	.pc = $1000
start:
	lda	#<msg
	ldy	#>msg
	jmp	$ab1e
	
msg:
	.text	"LEN $"+toHexString(end-start)
	.byte	0
end:
In this example toHexString() will generate lowercase, which is fine. However how do I convert it automatically to upper case? A custom to_upper(str) will fail because the string isn't fully resolved in the first pass.


3, A suggestion:
It would be useful to be able to generate UC-mode/LC-mode screen codes/petscii in some structured way.
   .text_u "HELLO WORLD!"
   .text_l "Hello World!"
   .scr_u "HELLO WORLD!"
   .scr_l "Hello World!"
A function wrapper could be a substitute, but see 2 above.


4, another suggestion:
It would be useful to be able to mix bytes and strings.
   .text "STRING",0
   .byte TOKEN_SYS,"2061",0,0,0
I guess some of this could be emulated with macros, but I usually prefer the short form.
2011-10-05 19:37
TWW

Registered: Jul 2009
Posts: 283
tlr: Good suggests!


Cruzer: Just to add: I find it a bit akward to use numerical parameters to pass on to a pseudo which should dictate what way it should operate.

i.e:

:MUL "S" ; #$04 ; #$10 ; $1000

would work fine but since I can't pass strings and you need to remeber that 1 = signed and 2 = unsigned etc. it doesen't look and feel that tidy to me anymore.

So: just allow a suffix to be passed OR allow passing of strings and it's all Rock and Roll Rulletobakk after that.
2011-10-05 20:20
Slammer

Registered: Feb 2004
Posts: 295
You can allready use _ in commandnames. Why don't you use two extra lines to define the two pseudo commands:
.pseudocommand MUL_S a ; b ; tar { :MUL 1 ; a ; b ; tar}
.pseudocommand MUL_U a ; b ; tar { :MUL -1 ; a ; b ; tar}
.pseudocommand MUL sign ; a ; b ; tar {

/* CODE..  
Use .if (sign==1) {...} etc. 
*/

}
2011-10-05 20:30
Slammer

Registered: Feb 2004
Posts: 295
Thanks for the suggestions.. I have had several whishes for uppercase/lowercase selection so that will be put high on the list.
2011-10-05 21:11
tlr

Registered: Sep 2003
Posts: 850
Quote: Thanks for the suggestions.. I have had several whishes for uppercase/lowercase selection so that will be put high on the list.

Great!

In case it wasn't clear enough:
in 3 I am suggesting that .text_u generates petscii suitable for printing with the uppercase charset, and .text_l generates the same suitable for printing with the lowercase charset.
.scr_u and .scr_l does the same but with screen code output.

In 1 I mean plain ASCII, or perhaps ISO-8859-1.

In 2 either some kind of conversion function, or better yet, solve the resolution problem in some way.
2011-10-05 21:55
TWW

Registered: Jul 2009
Posts: 283


Halleluja! Ask slammer and he has a way!!!

Beers on me if we ever meet!


About the ".ifdefined" thing, any news about this?
2011-10-06 23:51
Slammer

Registered: Feb 2004
Posts: 295
No .ifdefined yet. What are you going to use it for?
Previous - 1 | ... | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | ... | 43 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.


Search CSDb
Advanced
Users Online
Perff/No Name
Ruk/TRI▵D
JackAsser/Booze Design
bittin
Knut Clausen
The Human Co../Maste..
Duck LaRock/Camelot
Xenox.AFL
Guests online: 24
Top Demos
1 Edge of Disgrace  (9.7)
2 Coma Light 13  (9.7)
3 Daah, those acid pil..  (9.6)
4 Deus Ex Machina  (9.3)
5 Andropolis  (9.3)
6 Te-Te-Te-TechTech It..  (9.3)
7 +H2K  (9.2)
8 Artphosis  (9.2)
9 GOLC  (9.2)
10 2011 - A Press Space..  (9.2)
Top Groups
1 Booze Design  (9.4)
2 Crest  (9.4)
3 Oxyron  (9.4)
4 Maniacs of Noise  (9.2)
5 Eagle Soft Incorpora..  (9.2)
Top Hardware-Gurus
1 Soci  (9.9)
2 Jeri  (9.9)
3 Lemming  (9.8)
4 Zer0-X  (9.8)
5 Wiesel  (9.5)

Home - Disclaimer
Copyright © No Name 2001-2013
Page generated in: 0.36 sec.