Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed asm list export in debugger, endaddress is now really last written byte
  • Loading branch information
ThKattanek committed Jun 18, 2023
1 parent 01d3ee1 commit fdce5c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/c64_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3459,9 +3459,12 @@ bool C64Class::ExportASM(const char *filename, uint16_t start_adresse, uint16_t
fprintf(file,"\n");

uint16_t pc = start_adresse;
L10:
pc = DisAss(file,pc,true,source);
if(pc < end_adresse) goto L10;

do
{
pc = DisAss(file, pc, true, source);
}
while(pc < end_adresse + 1);

fclose(file);

Expand Down

0 comments on commit fdce5c8

Please sign in to comment.