Search found 656 matches

by jedie
Tue Oct 01, 2013 7:57 am
Forum: Dragon General
Topic: XRoar 0.30 released
Replies: 47
Views: 22375

Re: XRoar 0.30 released

Now, i first see XRoar under linux. It has a menu! Cool. Didn't see it until yet. What a pity that's not available on windows. The GTK+ version does, though you will also need the GTK+ libraries . Thanks! But why is this not on the XRoar homepage? Now i tried to load/run a .cas file. But this works...
by jedie
Tue Oct 01, 2013 7:46 am
Forum: Hints and Tips
Topic: Howto try small machine code programs in BASIC ?
Replies: 53
Views: 26740

Re: Howto try small machine code programs in BASIC ?

But that's what i what to have: Use assembler and BASIC together. So i can create "readable / commended" assembler codes. Needful of testing some small snippets.

But how to give some values back from machine code to BASIC? Or how to print out some characters in machine code?
by jedie
Tue Oct 01, 2013 7:43 am
Forum: Dragon General
Topic: how to develop Dragon programms?
Replies: 5
Views: 3192

Re: how to develop Dragon programms?

I think being able to ignore case while coding is quite useful, also converting to a tokenised BASIC .cas file first will speed loading, even in the emulator, so it's worth doing! What's about a case converting in XRoar while loading a .bas file? It's pain to code on PC in upcases. That's why i hav...
by jedie
Tue Oct 01, 2013 7:39 am
Forum: Dragon General
Topic: XRoar 0.30 released
Replies: 47
Views: 22375

Re: XRoar 0.30 released

robcfg wrote:Don't forget to press enter after the last line as otherwise Xroar will ignore it.
Ah, that's it, thanks! But why?
by jedie
Mon Sep 30, 2013 9:56 pm
Forum: Dragon General
Topic: how to develop Dragon programms?
Replies: 5
Views: 3192

Re: how to develop Dragon programms?

Hm! Sometimes it's much easier than i think. (If it's work: viewtopic.php?f=5&t=4383&p=9361#p9361 Maybe i missed something...)
by jedie
Mon Sep 30, 2013 9:51 pm
Forum: Dragon General
Topic: XRoar 0.30 released
Replies: 47
Views: 22375

Re: XRoar 0.30 released

Now, i first see XRoar under linux. It has a menu! Cool. Didn't see it until yet. What a pity that's not available on windows. But ok, then i will allways use nativ linux package from tormod ;) EDIT: Have a problem: I try to load a plain ASCII .bas file. But didn't work. File content is only 10 PRIN...
by jedie
Mon Sep 30, 2013 9:03 pm
Forum: Hints and Tips
Topic: Howto try small machine code programs in BASIC ?
Replies: 53
Views: 26740

Re: Howto try small machine code programs in BASIC ?

Found a interesting "answer" in Dragon User 41 (Nov. 84): The USR command can be used when your machine code routine needs to pass values to and from Basic. If your routine starts at address 32000 then the USR address is set up as follows: DEF USR5 = 32000 To call your routine and pass a variable to...
by jedie
Mon Sep 30, 2013 5:18 pm
Forum: Hints and Tips
Topic: Howto try small machine code programs in BASIC ?
Replies: 53
Views: 26740

Re: Howto try small machine code programs in BASIC ?

My destination is to have some small test script for testing the 6809 register functions. To compare my 6809 emulator with a real Dragon.

I would like to run something like this (pseudo code):

Code: Select all

LDA 254
INCA
print A
INCA
print A
INCA
print A
Interesting also: print the "overflow" flag out. But how?
by jedie
Mon Sep 30, 2013 4:59 pm
Forum: Hints and Tips
Topic: Howto try small machine code programs in BASIC ?
Replies: 53
Views: 26740

Re: Howto try small machine code programs in BASIC ?

Have disassemble the machine code from the example: 170 DATA 34,12 ' PSHS 12 180 DATA 86,00 ' LDA 00 190 DATA 8E,04,00 ' LDX 04 00 200 DATA A7,80 ' STA 80 210 DATA 8C,06,00 ' CMPX 06 00 220 DATA 25,F9 ' BLO/BCS F9 230 DATA 4C ' INCA 240 DATA 81,80 ' CMPA 80 250 DATA 25,f1 ' BLO/BCS f1 260 DATA 35,92...
by jedie
Mon Sep 30, 2013 4:40 pm
Forum: Hints and Tips
Topic: Howto try small machine code programs in BASIC ?
Replies: 53
Views: 26740

Howto try small machine code programs in BASIC ?

Found this BASIC script in InsideTheDragon book: 10 ' Machine code loader 11 ' Machine codes in hex are poked into memory 12 ' locations starting at 20001 then execed 20 READ LA ' LA = load address (start of program) 30 READ EA ' EA = address of first instruction 40 PA = EA 'to be executed 50 READ H...