Search found 1293 matches
- Sun Aug 18, 2013 12:13 am
- Forum: Programming
- Topic: Absolute Value
- Replies: 2
- Views: 846
For abs(x2-x1), I'm using this code snippet in my Bresenham line plotters: SEC LDA x1 SBC x2 BCS positive EOR #$FF ; C flag is clear here, ADC #$01 ; form two's complement .positive STA dx ... with the absolute value now being stored in dx. x1 and x2 are both unsigned 8-bit values. perfect..thanks....
- Sat Aug 17, 2013 3:42 pm
- Forum: Programming
- Topic: Absolute Value
- Replies: 2
- Views: 846
Absolute Value
Anyone have any example code to calculate the absolute value of a number in 6502 assembly.
e.g. abs(x2 - x1) to derive distance between two 8-bit numbers
e.g. abs(x2 - x1) to derive distance between two 8-bit numbers
- Fri Aug 16, 2013 6:57 am
- Forum: Games
- Topic: WIP: Pooyan20
- Replies: 24
- Views: 8627
- Fri Aug 16, 2013 6:54 am
- Forum: Games
- Topic: WIP: Pooyan20
- Replies: 24
- Views: 8627
- Mon Aug 12, 2013 1:48 pm
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
Screen Geometry
Hi Robert I have now posted some info about my game here: http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t=6634 As you can see there is a request to increase the number of rows. I have just read your section on VIC Screen geometry in the vicSSS documentation, but am still a little con...
- Sun Aug 11, 2013 10:54 am
- Forum: Games
- Topic: WIP: Pooyan20
- Replies: 24
- Views: 8627
WIP: Pooyan20
Hi All Just a heads-up that I'm working on a port of 80's arcade game - Pooyan. One of my favorite games of the period. The Vic never got a halfway decent version IMO. It's 100% machine code and being written using Robert Hurst's excellent Software Sprite Stack! Graphics were created using CBMPRG. T...
- Sat Jun 29, 2013 6:37 am
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
Thanks I'll post an alpha at some point when I'm on the home straight. One thing I did want to ask. I'm using all multi color and some of the sprite colors are rendered behind the play field characters. Is there anything that can be done about this? I'm using SSSPRINT to print the background btw. On...
- Thu Jun 27, 2013 4:17 pm
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
- Thu Jun 20, 2013 2:00 pm
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
SPRITEMAX is set to 16. Sprites created ldy #16 n x %10000111 ldy #8 2 x %10001100 where n = 8 : OK n = 10 : corruption occurs Afraid no, can't do repeating sprites. They're all animated individually. I tried SSSFFLIP but it gave odd results. Sprites jumped half way down the screen so I need to get ...
- Tue Jun 18, 2013 2:03 pm
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
I can now happily create up 128-chars worth of sprites + my 64 UDCs :D One thing I noticed and it could be my fault - but if I exceed 128 (64 d.b. x 2) chars worth of sprite images I get char corruption. Also, another question. I would like to use the frame skip value to adjust the graduation of spr...
- Fri Jun 14, 2013 12:19 am
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
- Wed Jun 12, 2013 12:47 pm
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
Excellent! I think you are nearly there... 8) I am referencing the source , and see that there is another hard-coded reference to $1C that needs replacement to $18 inside of SSSUPDATE: @Dchar: STA VECTORFG+1 SEC SBC #$1C ; starting page of custom chars Let us know how that works out for you. Feel f...
- Mon Jun 10, 2013 8:48 am
- Forum: Programming
- Topic: Software sprites?
- Replies: 175
- Views: 117167
Been using this stack for for my latest game. Works really well however I am desperately short of character space and the sprite rendering is corrupting my display. I need at least 64 UDC chars for the back drop. Would like to drop the ROM characters as I only use 12 of these and lower the UDCs in R...
- Sun Nov 20, 2011 10:00 am
- Forum: Other Systems
- Topic: The new C64x
- Replies: 16
- Views: 3783
Re: The new C64x
It would be more impressive if it wasn't just a PC. e.g. if it included a real C64 implemented using an FPGA or similar and with 9 pin joystick & maybe even a cartridge port, but with video & sound output via HDMI . http://www.commodoreusa.net/CUSA_C64.aspx It's back... and better than ever!...
- Mon Oct 24, 2011 4:09 pm
- Forum: Emulation and Cross Development
- Topic: CBM prg Studio
- Replies: 239
- Views: 163121
Screen Designer
One small suggestion. I think it would make the screen designer much more useful, if you could double click the characters in the Grid on the left and it take you straight to the character designer for that character and initialise it with the same colours.