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 > Dasm rorg directive
2008-11-05 20:28
The Human Code Machine

Registered: Sep 2005
Posts: 110
Dasm rorg directive

Hi, I'm looking for a DASM cross assembler version newer than 2.12 for DOS/Win with correctly working rorg directive. All newer versions I found on the net can't assemble the lower attached test source. I found it ages ago on one of the famous Fred Fish disks and I don't want to switch to another one :( I tried to contact one of the new maintainers, but I got no response. Anybody here has a working version or knows the dasm sourcecode a bit and has time to fix it?

processor 6502
org $c000

Main subroutine
sei
jsr Test
jmp nmi

Test subroutine
ldx #nmi_end-nmi_start-1
.loop lda nmi_start,x
sta nmi,x
dex
bpl .loop
rts


nmi_start subroutine

RORG $02
nmi subroutine
.1 INC $d020
jmp .1
rend

nmi_end
 
... 15 posts hidden. Click here to view all posts....
 
2008-11-06 12:46
Martin Piper

Registered: Nov 2007
Posts: 634
This works in ACME:
*=$c000
sei
jsr Test
jmp nmi

Test
ldx #nmi_end-nmi_start-1
.loop lda nmi_start,x
sta+1 nmi,x ; +1 forces 8 bit addressing mode
dex
bpl .loop
rts


nmi_start

!pseudopc $02 {
nmi
.1 INC $d020
jmp .1
rend
}
nmi_end
2008-11-10 17:30
chatGPZ

Registered: Dec 2001
Posts: 11119
urks, i tried your version ian.... and unfortunately i have to say that it sucks even more than the official one. the program counter seems to get confused under certain circumstances :/
747  9ffa       ; BANK 1 Vectors at $fffa
748  9ffa           org $9ffa
749  9ffa         a0 ff        .byte.b $a0,$ff ; NMI
750  9ffc         ac ff        .byte.b $ac,$ff ; Reset
751  9ffe         ac ff        .byte.b $ac,$ff ; IRQ

results in:
0000:1FD0 | D0 8D 21 D0   A0 00 B9 72   FF 99 00 02   C8 D0 F7 4C
0000:1FE0 | 00 02 A0 FF   AC FF AC FF   4C 12 80 4C   12 80 FF 43
0000:1FF0 | 42 4D A0 00   B9 3B A8 99   00 40 C8 D0   F7 A5 06 F0 


the very same file assembled with official 2.20.11 gives the expected (correct) output. so now i can choose between useful error messages and correct output. "great" =P
2008-11-10 19:38
iAN CooG

Registered: May 2002
Posts: 3135
Quote: urks, i tried your version ian.... and unfortunately i have to say that it sucks even more than the official one. the program counter seems to get confused under certain circumstances :/
747  9ffa       ; BANK 1 Vectors at $fffa
748  9ffa           org $9ffa
749  9ffa         a0 ff        .byte.b $a0,$ff ; NMI
750  9ffc         ac ff        .byte.b $ac,$ff ; Reset
751  9ffe         ac ff        .byte.b $ac,$ff ; IRQ

results in:
0000:1FD0 | D0 8D 21 D0   A0 00 B9 72   FF 99 00 02   C8 D0 F7 4C
0000:1FE0 | 00 02 A0 FF   AC FF AC FF   4C 12 80 4C   12 80 FF 43
0000:1FF0 | 42 4D A0 00   B9 3B A8 99   00 40 C8 D0   F7 A5 06 F0 


the very same file assembled with official 2.20.11 gives the expected (correct) output. so now i can choose between useful error messages and correct output. "great" =P


wtf?
 org $9ffa
 .byte $a0,$ff ; NMI
 .byte $ac,$ff ; Reset
 .byte $ac,$ff ; IRQ

this assembles just fine. Probably there is more you are not showing?
2008-11-10 19:45
chatGPZ

Registered: Dec 2001
Posts: 11119
ofcourse, this is from a large project (mmcr bios). i have to admit that i am not really in the mood to cut it down into a simple testcase right now :)
2008-11-10 19:58
WVL

Registered: Mar 2002
Posts: 886
Ehr hold on..

Are you saying you have the sources to the mmcr bios... also for the built-in sidplayer? Willing to share (if you are allowed?) so we can fix that thing?
2008-11-10 20:07
chatGPZ

Registered: Dec 2001
Posts: 11119
i can't share - but i *am* fixing it, just right now =)
2008-11-10 20:08
Ninja

Registered: Jan 2002
Posts: 404
gpz: Hint: You know that RR development was the main reason for Doc Bacardi to create DreamAss ;)
2008-11-10 20:09
iAN CooG

Registered: May 2002
Posts: 3135
Quote: ofcourse, this is from a large project (mmcr bios). i have to admit that i am not really in the mood to cut it down into a simple testcase right now :)

I fear some reversed org addresses can cause errors.
Make sure the lowest org is declared 1st.
Also raising the number of build passes can help resolving labels declared later in the source.
2008-11-10 20:22
chatGPZ

Registered: Dec 2001
Posts: 11119
Quote:
gpz: Hint: You know that RR development was the main reason for Doc Bacardi to create DreamAss ;)


hehe well, i don't really feel like converting the source to another assembler :) (and then i'd choose ca65 =P)
2008-11-10 20:38
Ninja

Registered: Jan 2002
Posts: 404
:D

Well, as long as there is a new binary for all of us at the end of the day. Oh. and what WVL said! ;)
Previous - 1 | 2 | 3 - 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
Mason/Unicess
The Human Co../Maste..
cobbpg
Isildur/Samar
kbs/Pht/Lxt
Dymo/G★P
Laddh
Brittle/Dentifrice^(?)
tlr
TheRyk/MYD!
Paladin/G★P
Guests online: 142
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 Musicians
1 Vincenzo  (9.8)
2 Rob Hubbard  (9.7)
3 Stinsen  (9.7)
4 Jeroen Tel  (9.6)
5 Linus  (9.6)

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