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..
 
... 592 posts hidden. Click here to view all posts....
 
2011-08-26 12:56
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Sorry Slammer, I write strange code for strange platforms, so I guess I end up hitting those cases noone thought of! :)

I'll try the workarounds posted here!
2011-08-31 19:15
tlr

Registered: Sep 2003
Posts: 1737
Typo:
buf_zp:
 .fill 4                  do <ctrl>-t here
 ^                            |
                              v
Error: Invalid number of arguemnts
at line 122, column 2 in test.asm


2011-08-31 20:02
Slammer

Registered: Feb 2004
Posts: 416
Thanks. It's corrected in the next release.
2011-09-07 19:01
Slammer

Registered: Feb 2004
Posts: 416
I just release v3.20. One of the new features is that you can force addressing modes like this:
inc.zp label
lda.abs $0000
or
inc.z label
lda.a $0000
Btw. the 'chars inheriting from number' issue was implemented in v3.19
2011-09-07 19:29
tlr

Registered: Sep 2003
Posts: 1737
Great!
2011-09-24 09:35
tlr

Registered: Sep 2003
Posts: 1737
Quote: I just release v3.20. One of the new features is that you can force addressing modes like this:
inc.zp label
lda.abs $0000
or
inc.z label
lda.a $0000
Btw. the 'chars inheriting from number' issue was implemented in v3.19


Hmm, in 3.20 do:
	.pc = $0801
	ldy.a	$c000,x
	sta.z	$fb,x

This will silently ignore the indexed addressing mode (= bad).

Also this could be resolved in a nicer way as we know that it must be <zp>,y:
	.pc = $0801
	stx	lab,y
.label lab = $fb

2011-09-24 17:08
Slammer

Registered: Feb 2004
Posts: 416
Try version 3.21 where you can force all the arguments types. Zeropage and zeropage,x are considered two different types so:
	ldy.a	$c000,x		// Abolute mode - No indexing
	ldy.ax  $c000,x		// Absolute,x
	sta.z	$fb,x		// Zeropage mode - No indexing
	sta.zx	$fb,x		// Zeropage mode,x

I skimmed the Dasm manual and had the impression that they have a similar approach? However i like the simplicity of only having to memorize two extensions so I will take a look at the implication once i get some sparetime.

Nice stx lab,y observaton.
2011-09-24 22:36
tlr

Registered: Sep 2003
Posts: 1737
Quoting Slammer
Try version 3.21 where you can force all the arguments types. Zeropage and zeropage,x are considered two different types so:
	ldy.a	$c000,x		// Abolute mode - No indexing
	ldy.ax  $c000,x		// Absolute,x
	sta.z	$fb,x		// Zeropage mode - No indexing
	sta.zx	$fb,x		// Zeropage mode,x

I skimmed the Dasm manual and had the impression that they have a similar approach? However i like the simplicity of only having to memorize two extensions so I will take a look at the implication once i get some sparetime.

Dasm does have that approach but I consider it very confusing.

I've even changed that in my own version of dasm.
2011-09-27 14:39
TWW

Registered: Jul 2009
Posts: 542
Hey!


Is there a clever way to count the amount of bytes used in a routine within KickAss?

something like (creating an index table):

.pc = begin
CODE
.pc = end

.for (var i = 0 ; i < 128 ; i++) {
.byte <STUFF+[i*[end-begin]]
}

cheers!
2011-09-27 14:52
Cruzer

Registered: Dec 2001
Posts: 1048
Something like this?...

.var length = end - start
start:
    nop
end:
.print "length:" + length

Previous - 1 | ... | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | ... | 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
Krill/Plush
Freeze/Blazon
Brittle/Dentifrice^(?)
Yogibear/Protovision
Nordischsound/Hokuto..
t0m3000/HF^BOOM!^IBX
Shake/Role
Slaxx/Q/HF/MYD!
CA$H/TRiAD
Guests online: 97
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Aliens in Wonderland  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Birth of a Flower  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Morph  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Logo Graphicians
1 Sander  (9.9)
2 Facet  (9.5)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

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