Search found 542 matches
- Sun Jun 09, 2024 1:13 pm
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
Ok well it's maths. Specifically Linear Algebra which covers transformations of things in space. Linear Algebra is not very hard compared to most maths subjects. It's mainly vectors/matrices which are easily visualised in 2D and not hard to understand. Rotations (in 2D) are also described by comple...
- Sun Jun 09, 2024 3:36 am
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
Well yeah but WHY are you trying to rotate part of the screen? If it's for an art package obviously it needs to be as good as possible and my 1h attempt is no good for that. EDIT: What it is good for though is rotating vertices. If it's for a game idea you want to use a proper art package on a PC a...
- Sun Jun 09, 2024 3:15 am
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
It might help if you tell us what you are trying to achieve. If you just want to learn some maths to do with graphics that's great, I will open a general thread about maths then I guess. If you want to rotate images by 90, 180, 270 degrees there are much much better ways to do that. None of which i...
- Sun Jun 09, 2024 2:28 am
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
Ok it's a bit crap, scaling/rotating rasterisers don't treat each individual texel as a separate pixel they are more clever than that. (60 degree rotation here). This is basically treating the pixels set as a point cloud and when rotated rounding errors are causing issues looks like. It's a lot fas...
- Sat Jun 08, 2024 4:33 pm
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
- Sat Jun 08, 2024 4:22 pm
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
Making a series of shears from a rotation matrix is basically just applying a change of basis matrix 3 times, whereas a rotation changes the basis just once. how would i do this in basic? im not very good at maths. i wouldnt know where to begin. i know it would be extremely slow but its a starting ...
- Sat Jun 08, 2024 2:40 am
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
Re: is there a routine that will rotate the whole or part of the screen?
90 degrees isn't too hard. Anything else is pretty difficult you need to do a rotation of all the set pixels. Most efficient way to do that is complex numbers (more efficient than multiplying by an equivalent 2x2 rotation matrix). EDIT: Turns out the number of operations are the same though. https:...
- Fri Jun 07, 2024 7:42 pm
- Forum: Programming
- Topic: is there a routine that will rotate the whole or part of the screen?
- Replies: 25
- Views: 576
is there a routine that will rotate the whole or part of the screen?
or would this be too much for the cpu? i had a look on google again but nothing.
- Wed May 29, 2024 4:22 pm
- Forum: Programming
- Topic: how do i scroll an individual character vertically?
- Replies: 7
- Views: 535
Re: how do i scroll an individual character vertically?
thank you. i had a feeling it might be that. lol
Edited by PJ to reduce quoting.
- Wed May 29, 2024 1:32 pm
- Forum: Programming
- Topic: how do i scroll an individual character vertically?
- Replies: 7
- Views: 535
Re: how do i scroll an individual character vertically?
Try this: 10 LET a=USR “B” 20 GO SUB 100 30 PRINT AT 0,0; CHR$ 145 40 LET t=PEEK a 50 FOR n=0 TO 6 60 POKE a+n,PEEK (a+n+1) 70 NEXT n 80 POKE a+7,t 90 GO TO 30 100 FOR n=0 TO 7 110 LET t=2^n 120 POKE a+n,t 130 NEXT n 140 RETURN Mark thats great. thank you. but how do i scroll it the other way. ive ...
- Wed May 29, 2024 12:00 pm
- Forum: Programming
- Topic: how do i scroll an individual character vertically?
- Replies: 7
- Views: 535
Re: how do i scroll an individual character vertically?
You need to think about it as a series of small steps and what is happening to the memory on each pass of the loop. So you need to copy each byte to the byte before it, but will already need to have saved a copy of the first byte since it needs to be POKEd as the last byte. And thus the code will l...
- Wed May 29, 2024 3:15 am
- Forum: Programming
- Topic: how do i scroll an individual character vertically?
- Replies: 7
- Views: 535
- Tue May 28, 2024 3:38 pm
- Forum: Programming
- Topic: does the speccy have a rol or ror 6502 instruction equivalent?
- Replies: 3
- Views: 248
- Tue May 28, 2024 3:31 pm
- Forum: Programming
- Topic: does the speccy have a rol or ror 6502 instruction equivalent?
- Replies: 3
- Views: 248
does the speccy have a rol or ror 6502 instruction equivalent?
im trying to get a program to work here is the assembly org 40000 ld a,254 ld (50000),a ret org 60000 ld a,(50000) rla ld (50000),a ret ive looked at all the instructions similar to rla, rra, etc but no joy. the program just keeps shifting to the right or left and not 'rotating' https://i.postimg.cc...
- Sat May 18, 2024 4:57 pm
- Forum: Programming
- Topic: im looking for a zoom in routine
- Replies: 6
- Views: 352
- Sat May 18, 2024 4:51 pm
- Forum: Programming
- Topic: im looking for a zoom in routine
- Replies: 6
- Views: 352
im looking for a zoom in routine
nothing on google. so you can select an area of the screen and zoom into it. or something that could expand a udg. any ideas?
- Wed May 15, 2024 1:56 pm
- Forum: Emulators
- Topic: is there an emulator that supports the sid?
- Replies: 8
- Views: 443
Re: is there an emulator that supports the sid?
again this is using ay'sstupidget wrote: ↑Wed May 15, 2024 1:33 pm There was this thread a few years back:
viewtopic.php?t=2786&hilit=SID+Player
But you need a DIVmmc on real hardware, but now that you can emulate DIVmmc in FUSE Maybe that's an option?
- Wed May 15, 2024 1:21 pm
- Forum: Emulators
- Topic: is there an emulator that supports the sid?
- Replies: 8
- Views: 443
Re: is there an emulator that supports the sid?
The NEXT has a SID Player: https://www.specnext.com/nextsid-tracking-on-the-next/#:~:text=em00k%20has%20released%20NextSID%2C%20a,symphonies%20in%20your%20loved%20computer. So you could use that in a NEXT Emulator: https://www.specnext.com/emulating-the-next-zesarux/ it uses the 3 ay chips and also...
- Wed May 15, 2024 12:26 pm
- Forum: Emulators
- Topic: is there an emulator that supports the sid?
- Replies: 8
- Views: 443
is there an emulator that supports the sid?
cant find one on google. not the ay emulator btw. something that emulates a real sid
- Sun May 12, 2024 12:42 pm
- Forum: Programming
- Topic: printing to the screen without using rom calls
- Replies: 10
- Views: 380
Re: printing to the screen without using rom calls
What about plotting your letters? Like so: Print_s: ld de, 0x13 ; start at y=1, x=3 call Plot dec e call Plot dec e call Plot inc d call Plot inc d call Plot inc e call Plot inc e call Plot inc d call Plot inc d call Plot dec e call Plot dec e call Plot which gives you a small 's' at any pixel posi...
- Sun May 12, 2024 12:37 pm
- Forum: Games/Software
- Topic: what is the best version of space invaders written in basic?
- Replies: 1
- Views: 128
what is the best version of space invaders written in basic?
ive looked in the game archives on here and not really found anything that is any good. also i looked in various type in websites and found a few but they still werent great. and i also did a google search. any ideas?
- Fri May 10, 2024 2:09 pm
- Forum: Programming
- Topic: printing to the screen without using rom calls
- Replies: 10
- Views: 380
- Fri May 10, 2024 1:23 pm
- Forum: Programming
- Topic: printing to the screen without using rom calls
- Replies: 10
- Views: 380
printing to the screen without using rom calls
how do i do this? ive had a look on goggle but cant find any routines. im guessing this will be faster. any help will be welcome.
- Tue Apr 30, 2024 2:59 pm
- Forum: Programming
- Topic: problems with sjasm
- Replies: 4
- Views: 388
Re: problems with sjasm
I can't help you directly with your case but may have some hint. Personally I do it in a different way. I always complile a single file which has in its code "pointers" to more files. There are instructions like INCLUDE or INCBIN to achieve it like: INCLUDE <Graphics.asm> INCLUDE <Menu.as...
- Tue Apr 30, 2024 2:39 pm
- Forum: Programming
- Topic: problems with sjasm
- Replies: 4
- Views: 388
problems with sjasm
im trying to compile the filled vector routine from the l break into program website. unfortunately it compiles down to only 1k which i think is too small. i think its compiling the wrong file. heres the syntax that im using sjasmplus --raw=out.bin b.txt c.txt v.txt https://github.com/breakintoprogr...