Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


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

Registered: Feb 2004
Posts: 416
Kick Assembler Thread 2

The previous thread took a little long to load, so this is a new fresh one..
 
... 590 posts hidden. Click here to view all posts....
 
2012-07-23 07:05
Oswald

Registered: Apr 2002
Posts: 5022
overkill imho. text, pdf, html, all works and word can do those. all I need is ctrl+f to have a useful documentation. if sum1 cant use these he cant code 6510 either. :)
2012-07-23 11:44
chatGPZ

Registered: Dec 2001
Posts: 11129
for a java program i'd not even think and use javadoc. if only because everyone does the same and solving a problem using google is a breeze.

and i'd strongly advice against using someones personal favourite - if it isnt one of the two majorly used ones =)

that said, vice uses TeX with texinfo - you can generate lots of different target formats with that.
2012-07-23 20:10
Cruzer

Registered: Dec 2001
Posts: 1048
Javadoc doesn't make sense for KickAss, since it's not a Java API, but a program that interprets something very different. Too bad there still don't seem to be any perfect solutions for writing a document in PDF and HTML in one go. But I think HTML would be sufficient. PDF is mostly targeted for printing, but who really needs that?
2012-08-08 03:54
TWW

Registered: Jul 2009
Posts: 541
Question:

Is there a fancyschmancy way to do this:

.const SomeString = "abcdef"+toHexString($1234)


Thus producing the new string: "abcdef4r"

where "4r" is a lo-hi byte (as it would go into memory) presentation of $1234 ($34 = "4" & $12 = "r")?




Oh and a minor suggestion: Please index your manual for kickass. links and a content list on the side would make the manual world class ;-)
2012-08-08 07:08
ruk

Registered: Jan 2012
Posts: 43
@TWW

On the top of my head, and I bet there exists a fancier way =)

      .const table = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ !\"#$%&'()*+,-./0123456789:;<=>?"
      
      .function byteToString(val){   
           .return table.charAt(val).string()
      }
      
      .function wordToString(val){
            .return byteToString(<val) + byteToString(>val)
      }
      
      .const SomeString =  "ABCDEF" + wordToString($1234)
      
      .print SomeString
2012-08-08 08:01
Cruzer

Registered: Dec 2001
Posts: 1048
@Ruk: That would of course require a 256 chars long table to avoid index out of bound.
2012-08-08 09:44
ruk

Registered: Jan 2012
Posts: 43
@Cruzer

It was merely a proof of concept. But yes, it will break easily. AND:ing 'val' with $3F keeps you in range I suppose =)
2012-08-08 11:26
Slammer

Registered: Feb 2004
Posts: 416
TWW: Im working on a new setup for the manual. Clickable table of contents and clickable list of directives are part of it.

Overkill?, Perhaps so. But Word have been bugging me for some time now, and integrating pdf+html generation in the builder will make new releases easier in the long run.
2012-08-09 03:52
TWW

Registered: Jul 2009
Posts: 541
@ Ruk: Thanx for pointing me in the right direction. I can do hi and lobytes from $00 to $40 8-D.

I'm not sure how I would succeed with and'ing to rid the two MSBs though. Is there a way to build the complete tabel somehow instead of manually typing it?

@ Cruiser: Yeah, and how to fricking fill in the rest of the "special and inverted characters".

@ Slammer: Nice! Looking forward to it. It's a good manual.


So I then have a refined question;

Is there a way to go from a byte (00-ff) to the corresponding petscii character without using a lookup table within the script language (probably not but can't hurt to ask)?

ex:
.print char(0) = "@"
.print char(3) = "C"

etc.
2012-08-09 12:03
Cruzer

Registered: Dec 2001
Posts: 1048
@TWW: Yeah, that's what I was thinking from the start. :)
@Slammer: KickAss IS overkill, that's what makes it awesome :)
Previous - 1 | ... | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | ... | 61 - 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
Andy/AEG
cobbpg
hedning/G★P
Airwolf/F4CG
Compyx/Focus
josepzin/Nautilus
Guests online: 158
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (9.9)
2 Facet  (9.6)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.055 sec.