Nп/п : 19 из 47
 От   : Oliver Schmidt                      2:5075/128        11 авг 23 18:50:53
 К    : Colin Leroy-Mira                                      11 авг 23 21:53:02
 Тема : Re: Generic question about Apple2 / cc65 debugging
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@solani.org> 7a1e2df3
@REPLY: <20230811201326.30841582@laptop-sigfox>
2dc357fa
@REPLYADDR Oliver Schmidt <ol.sc@web.de>
@REPLYTO 2:5075/128 Oliver Schmidt
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@solani.org>
@RFC-References:
<20230811201326.30841582@laptop-sigfox>
@TZUTC: -0000
@PID: NewsTap/5.5 (iPhone/iPod Touch)
@TID: FIDOGATE-5.12-ge4e8b94
Hi Colin,

> how does one debug cc65-generated code while sucking at
> assembly?

Certainly not the silver bullet you might be looking for, but what`s there:

Build with options that generate additional files which allow you to relate
addresses you see in the monitor of an emulator to your source code.

1. Create a map file. It tells you where your functions are placed in
memory: --mapfile 

2. Create a listing file with source comments. It tells you which source
code line belongs to which offset: --listing  --add-source

So even when you don`t understand assembly you can this way follow which
source code line is currently executed or set breakpoints on a source code
line.

Regards,
Oliver
--- NewsTap/5.5 (iPhone/iPod Touch)
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх