Search found 184 matches
- Fri Dec 08, 2023 1:57 am
- Forum: Programming
- Topic: Getting a signed multiply working (was: How do I print signed integer numbers?)
- Replies: 6
- Views: 4184
Re: Getting a signed multiply working (was: How do I print signed integer numbers?)
Thanks a lot for your answers. Unfortunately I can't get it right yet. I'm just trying to get this routine going. Unfortunately it doesn't work. Neither for unsigned nor signed. The routine is almost at the bottom of the page. https://llx.com/Neil/a2/mult.html INIT: LDA #SSQLO/256 STA PSLO+1 LDA #SS...
- Fri Dec 08, 2023 1:50 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
Good morning, The task is giving me a bit of a headache. :| Are my following assumptions correct? Charset @ $0200 to $02FF BitMap one @ $1000 - $17FF BitMap one @ $1800 - $1FFF Flip bit @ $9005 LDA $9005 EOR #%01000000 STA $9005 But how can I cleverly rewrite the routine for plotting? ;subroutine: p...
- Wed Dec 06, 2023 11:41 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
THX for your replies.
That saves the LDA $XXYY,x
I will try it tomorrorw.
That saves the LDA $XXYY,x
I will try it tomorrorw.
- Tue Dec 05, 2023 2:38 pm
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
Hello,
now i draw to "screen 2" @ $1080 - $10FF, $1180 - $11FF,... wait for the raster beam.
Then I copy the result to "screen 1" @ $1000 - $107f, 1100 - 117F,...
Clear screen 2 and so on ...
The result is okay for me.
now i draw to "screen 2" @ $1080 - $10FF, $1180 - $11FF,... wait for the raster beam.
Then I copy the result to "screen 1" @ $1000 - $107f, 1100 - 117F,...
Clear screen 2 and so on ...
The result is okay for me.
- Tue Dec 05, 2023 8:30 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
Thanks again Mike!
- Tue Dec 05, 2023 7:35 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
How?
IRQ:
LDA $9004
BPL Return
Code for SWAP Screens
Return:
JMP $EB15
Could this work?
IRQ:
LDA $9004
BPL Return
Code for SWAP Screens
Return:
JMP $EB15
Could this work?
- Tue Dec 05, 2023 6:58 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Re: Double buffering screen bitmap
Hello Thegg,
you mean I should use 128 (0-127) chars for BitMap 1 and 128 (128-255) chars for BitMap 2?
you mean I should use 128 (0-127) chars for BitMap 1 and 128 (128-255) chars for BitMap 2?
- Tue Dec 05, 2023 6:53 am
- Forum: Programming
- Topic: Getting a signed multiply working (was: How do I print signed integer numbers?)
- Replies: 6
- Views: 4184
Getting a signed multiply working (was: How do I print signed integer numbers?)
Hello, I used some unsigned integer multiply routines from codebase64. Now I would like to compare some signed integer multiply rotines. But how can I print the multiplier, multiplicand and result on screen with the sign - ? As an example there is the code of my unsigned routine. ; mult39.a ; from h...
- Tue Dec 05, 2023 2:47 am
- Forum: Programming
- Topic: Double buffering screen bitmap
- Replies: 22
- Views: 8588
Double buffering screen bitmap
Hello, I need support to implement a double buffering routine that I would like to use in my frames per second counter / monitor program. Please see my other post. My thought on this routine is this. Main loop: 3D calculations with plotting to a memory area for example $4000-$4FFF Copy data from mem...
- Sun Dec 03, 2023 1:11 pm
- Forum: Programming
- Topic: Help needed for "Frames Per Second Counter / Monitor"
- Replies: 5
- Views: 3887
Re: Help needed for "Frames Per Second Counter / Monitor"
Here is the sample code with hidden lines... over 22FPS ??? Can this be?
- Sun Dec 03, 2023 11:31 am
- Forum: Programming
- Topic: Help needed for "Frames Per Second Counter / Monitor"
- Replies: 5
- Views: 3887
Re: Help needed for "Frames Per Second Counter / Monitor"
There is a minor update of the code.
Now the FPS shows in decimal numbers, but only from 00-29 FPS.
I think this is enough...
Now the FPS shows in decimal numbers, but only from 00-29 FPS.
I think this is enough...
- Sun Dec 03, 2023 2:46 am
- Forum: Programming
- Topic: Help needed for "Frames Per Second Counter / Monitor"
- Replies: 5
- Views: 3887
Re: Help needed for "Frames Per Second Counter / Monitor"
Thanks a lot for the tip. I found what i need.
If i use the following code or jump to $EB15 instead the jump to $EAFB it works perfect for my routine.
If i use the following code or jump to $EB15 instead the jump to $EAFB it works perfect for my routine.
Code: Select all
BIT $9124
PLA
TAY
PLA
TAX
PLA
RTI
- Sat Dec 02, 2023 11:46 am
- Forum: Programming
- Topic: Help needed for "Frames Per Second Counter / Monitor"
- Replies: 5
- Views: 3887
Help needed for "Frames Per Second Counter / Monitor"
Dear all, after implementing the 3DCube Demo from https://retro64.altervista.org/blog/an-introduction-to-vector-based-graphics-the-commodore-64-rotating-simple-3d-objects/ i think about a frames per second counter to know how many frames the routine is working. My routine look like this: SEI ; new I...
- Mon Nov 27, 2023 4:33 am
- Forum: Programming
- Topic: VIC 20 Graphics Artist
- Replies: 29
- Views: 8878
Re: VIC 20 Graphics Artist
Hello,
The program really runs very smoothly.
The program really runs very smoothly.
- Mon Nov 27, 2023 3:56 am
- Forum: Programming
- Topic: Making a random number in Assembly
- Replies: 50
- Views: 40233
Re: Making a random number in Assembly
Hello, For practice purposes, I programmed Mike's Madness demo in assembler. I use the following code as a random generator: randomgen_y: LDA zero ADC seed_y ADC $9128 ; or $9004 for x STA seed_y LDA seed_y cmp #192 ; #168 BCS randomgen_y INC randomgen_y+1 RTS An 8k+ expansion RAM is needed. You can...