I've only found how to autostart a BASIC program after CLOADing it; but none about an AUTOEXEC.BAS file or something like the OS9 startup file
![Sad :(](./images/smilies/icon_e_sad.gif)
Code: Select all
EDIT: Version 1.0 code deleted.
Code: Select all
10 ' DRAGONDOS AUTOBOOT V1.1
20 ' BY STEVE EVANS (ZEPHYR)
30 ' 12TH SEPTEMBER, 2014
40 '
50 FOR I=&H200 TO &H239:READ A$:X=VAL("&H"+A$):CH=CH+X:POKE I,X:NEXT
60 IF CH<>5212 THEN PRINT"ERROR IN DATA LINES.":END
70 CLS:PRINT@225,"HIT 'SPACE' TO WRITE BOOT CODE"
80 A$=INKEY$:IF A$="" THEN 80
90 IF A$=" "THEN CLS:PRINT"WRITING BOOT CODE...":EXEC&H200:GOTO70
100 IF A$="Q"THEN CLS:END ELSE 80
110 DATA 8E,0,3,9F,EC,30,8D,0,16,9F,EE,34,10,BD,C1,1,35,10,30,89,1,0,C,ED,96,ED,81,1B,25,EB
120 DATA 39,4F,53,8E,26,9,9F,A6,7E,83,7D,52,55,4E,22,41,55,54,4F,45,58,45,43,2E,42,41,53,22
XRoar can load and run a variety of files with the -run option. I use it for cross-developing together with lwasm. Although not a Dragon format, the DECB format is very handy here. lwasm can write a .bin file in DECB format with lwasm --format=decb and then this can be loaded (and run) directly by XRoar.jltursan wrote:I must explain that I need it to finish a development toolchain. I've plans to cross-develop some programs from Windows, inject the files into a disk image and boot the emulator with it. Using the autoboot feature I can run any program without interaction.
Code: Select all
xroar -machine dragon64 -extbas d64_1.rom -altbas d64_2.rom -machine-cart dragondos -cart-rom ddos40.rom -force-crc-match -joy-left 0,0:1:0 -kbd-translate -load demodisk.vdk
Code: Select all
cd..
copy ..\XRoar\DOS-ROMs\ddos11c.rom ddos40.rom
copy ..\XRoar\ROMs\d64rom1V31.rom d64_1.rom
copy ..\XRoar\ROMs\d64rom2V31.rom d64_2.rom
xroar -machine dragon64 -extbas d64_1.rom -altbas d64_2.rom -machine-cart dragondos -cart-rom ddos40.rom -force-crc-match -disk-write-back -joy-left 0,0:1:0 -kbd-translate -run demodisk.vdk
del *.rom