my try
I just tested the program. It's a nice effect!
my try
I just tested the program. It's a nice effect!
Alles anzeigenI was very impressed by the speed of the DMA command. It is described in the Mega65 manual at page 93:
Funny how that description does not match the syntax in your program, the number of parameters is off.
How did you find out the correct syntax?
Answer: Veryyyyyyy fast! And it's a BASIC(!) command.
So what?
Do someone know a method to export the C65 BASIC program as text, to read it with a normal editor?
Just use petcat from VICE.
By the way, the program uses token $fe $1f, not $fe $23 as given in the manual.
I'd the info about the DMA command from this textfile: Bitte melde dich an, um diesen Link zu sehen.
ZitatAlles anzeigenDMA -- Perform a DMA operation
DMA command [,length,source(l/h/b),dest(l/h/b),subcmd,mod(l/h) [,...]]
[*** THIS COMMAND IS SUBJECT TO CHANGE ***]
The DMA command defines and executes a Direct Memory Access operation.
The parameters are used to construct a DMA list, which is then passed
to the DMA processor for execution. Refer to the DMA chip
specification for details. Chained DMA commands are not allowed, but
multiple DMA commands can be given and the DMA handler will set up
and execute each one, one at a time. Refer to the system memory map to
find out where things are.
Because this command directly accesses system memory, extreme care
should be taken in its use. Changing the wrong memory locations can
crash the computer (press the reset button to reboot).
DMA 3, 2000, ASC("+"), 0, DEC("800"), 0 Fill screen with '+'
[...]
DMA Token = FE,1F define & execute DMA command
DMA Token = FE,21 "
DMA Token = FE,23 "
Snoopy Interessanter wäre statt den Bildschirm mit ein und das gleiche Zeichen zu füllen, ob du damit z.B. eine Bildschirmmaske rasant Kopieren kannst.
Also z.B. es steht ein bild wie dem Norton Commander, dann rufst du Hilfe (HELP), der sichert (mit DMA) den Bildschirm, pastet ein Bildschirm (oder nur ein Bereich) mit Hilfstext natürlich auch mittels DMA, und 'Restorest' hinterher den gesicherten Status zurück.
Danke für die Anregung! Das probiere ich mal aus, wenn ich bisschen Luft dafür habe.
Last night I wrote a little demo program on the Xemu emulator (C65 mode) to get a feeling of the new BASIC commands.
I was very impressed by the speed of the DMA command. It is described in the Mega65 manual at page 93:
Bitte melde dich an, um diesen Anhang zu sehen.
I wrote a little demo program which fill the textscreen with the pressed key. If ESC is pressed, the program clears the screen and end.
Nothing special, just to see how fast the whole screen (80 x 25 = 2.000 characters) get filled.
Answer: Veryyyyyyy fast! And it's a BASIC(!) command. ![]()
Bitte melde dich an, um diesen Anhang zu sehen.
Bitte melde dich an, um diesen Anhang zu sehen.
Bitte melde dich an, um diesen Anhang zu sehen.
I attached the program as a zipped D81 discimage, if someone is interested to test it on real hardware (or Xemu).
Do someone know a method to export the C65 BASIC program as text, to read it with a normal editor?
I've used Bitte melde dich an, um diesen Link zu sehen. to create the disc image and I can drag and drop the PRG file to the new D81 discimage. But I see no option to export the C65(!) BASIC program as text.