6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Sep 22, 2024 11:40 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Aug 28, 2018 2:21 pm 
Offline

Joined: Sun Aug 26, 2018 7:33 pm
Posts: 4
hi everyone!

on pasmo (z80) i use to define different org addresses along the code (like org $4000, org $5000, etc.) , and all the empty data lasts there in the exact addresses when compiled

i’m strugglng a lot to do the same on xa65 (6502) - when i set, for example *=$1000 , *=$1010, *=$F800 and *=$FFF8, it seems to consider only one of them (*=$1000) and ignore everything else

what am i doing wrong there?


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 30, 2018 8:21 pm 
Offline

Joined: Thu Feb 10, 2011 3:14 am
Posts: 79
Csn you please post some example code?


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 16, 2018 6:37 am 
Offline

Joined: Sat Aug 21, 2010 7:52 am
Posts: 231
Location: Arlington VA
CurtisP wrote:
Csn you please post some example code?
I am a huge xa65 fan! Here are the only two places where I do a `*=` in my code.
Code:
#define basic $0401
*=basic-2
basic2pettil
    .word basic                 ; PRG file load address `$0401`
    .word basend
    .word 10
    .byt $9E                    ; SYS token
    .asc "1037",0               ; restart #1 (of 3) `liftoff`
basend
    .word 0

elsewhere...
hitop=VIDRAM-$1900
    .word hitop-2               ; load address
    .word tdictend-hitop        ; size of the transient dictionary in bytes
*=hitop
_studio
    jsr enter
    .word plit
    .word there+2
    .word fetchplus
    .word plus
    .word bl
    .word minus
    .word symtab                ; points to unindexed symbol list
    .word store
    .word _splash
within a block of memory I use ` .dsb [size]` instead of `*=*+`


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron