Author Topic: Chunky Pixel Curator - WIP  (Read 7670 times)

0 Members and 1 Guest are viewing this topic.

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #25 on: 15:56, 18 November 14 »
@erving , any chance for a scan of those photos? :)

Alrighty, you asked for it!
 ;D

http://i69.photobucket.com/albums/i57/poppichicken/2854aeec-95eb-41c7-b990-273be2d71ae9.jpg
http://i69.photobucket.com/albums/i57/poppichicken/88c42b30-689e-481d-b228-f568ea8b277e.jpg

Wow... those photos must be 28/29 years old.
Holy cow. Where have the years gone?!?!

Looks like I'm playing Knight Lore in one of the photos (judging by the map), and working on a programming article from ACU in the other.
I'd love to know which issue that programming article is from, but the photo isn't clear enough.

[EDIT] Found it!
I was working on page 66, of the March 1985 issue of ACU (I was typing in Trench Attack)!
It's amazing; to this day I remember typing that one in and running it (and not having any idea how it worked!)... glorious memories.
 8)
« Last Edit: 16:15, 18 November 14 by ervin »
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.327
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 1037
  • Likes Given: 2488
Re: Chunky Pixel Curator - WIP
« Reply #26 on: 17:11, 18 November 14 »
Hehe, nice pictures!


I think I have some very similar pictures of myself with my Amstrad.

Offline Carnivius

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.489
  • Country: gb
  • Mayhem Attack Squad
    • index.php?action=treasury
  • Liked: 1074
  • Likes Given: 590
Re: Chunky Pixel Curator - WIP
« Reply #27 on: 19:08, 18 November 14 »
Ah, so this be what you mentioned before with the scaling routines?   It's pretty neat and I found the use of Roland on the Ropes sprites very amusing.  :)
Favorite CPC games: SwitchBlade, Stryker in the Crypts of Trogan, Turrican II, UN Squadron, Oh Mummy

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #28 on: 00:37, 19 November 14 »
Hehe, nice pictures!

I think I have some very similar pictures of myself with my Amstrad.

Yeah, I look a bit different these days!
A bit thinner and quite a bit older!  :laugh:
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #29 on: 00:38, 19 November 14 »
Ah, so this be what you mentioned before with the scaling routines?   It's pretty neat and I found the use of Roland on the Ropes sprites very amusing.  :)

Yep, that's the one!  :D

And I can finally say (with these bugs out of the way) that the engine is finally completely finished!
(Well, until the next bug is found).

Content can now be full steam ahead!
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.891
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1864
Re: Chunky Pixel Curator - WIP
« Reply #30 on: 10:32, 19 November 14 »

In that code is a POP IX and a PUSH IX.
It used to be POP AF and PUSH AF.
I can see why it caused a crash - the ADD HL,DE was changing flags and therefore corrupting the AF that I had stored.

However, that worked in WinAPE, which leads me to wonder if WinAPE isn't treating the flags properly in such a case...



I was reading in my Assembly Book that ADD HL,reg alters the Carry flag, but nothing else. So I'll probably have to check some of my assembly routines which is using ADD that happily runs in Winape.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #31 on: 11:15, 19 November 14 »
I was reading in my Assembly Book that ADD HL,reg alters the Carry flag, but nothing else. So I'll probably have to check some of my assembly routines which is using ADD that happily runs in Winape.

Yes, the carry bit being changed in the F register is what was corrupting my code.
Silly mistake on my part.
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.313
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1186
  • Likes Given: 83
Re: Chunky Pixel Curator - WIP
« Reply #32 on: 11:59, 19 November 14 »
But the fix is good, I tested this on my 4128plus last night. And it's lovely on the real hardware.
IRC:  #Retro4All on Freenode

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.721
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 4219
  • Likes Given: 444
Re: Chunky Pixel Curator - WIP
« Reply #33 on: 12:01, 19 November 14 »
But the fix is good, I tested this on my 4128plus last night. And it's lovely on the real hardware.

Looks like the 4128plus has become your new "standard machine" :)

Bryce.

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.313
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1186
  • Likes Given: 83
Re: Chunky Pixel Curator - WIP
« Reply #34 on: 12:38, 19 November 14 »
He'll yes. I love it. I am even thinking of moving the symbiface onto my Amstrad Cpc 6128 and shelving the 2 6128 pluses. The upgraded 464plus is certainly my number 1 Cpc now.
IRC:  #Retro4All on Freenode

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #35 on: 13:05, 19 November 14 »
But the fix is good, I tested this on my 4128plus last night. And it's lovely on the real hardware.

Excellent! REALLY glad to hear that it is working on real hardware!

I'd love to get some more testimonials from 464, 664 and of course 6128 users.
 8)
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.313
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1186
  • Likes Given: 83
Re: Chunky Pixel Curator - WIP
« Reply #36 on: 13:39, 19 November 14 »
I can do that tonight on Cpc 6128 but I don't have Cpc 464 or 664.
The 6128plus will work, it's the same mobo and asic as the 464plus after all.
IRC:  #Retro4All on Freenode

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #37 on: 15:03, 19 November 14 »
I can do that tonight on Cpc 6128 but I don't have Cpc 464 or 664.
The 6128plus will work, it's the same mobo and asic as the 464plus after all.

Tremendous, thanks so much for your help.
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline Carnivius

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.489
  • Country: gb
  • Mayhem Attack Squad
    • index.php?action=treasury
  • Liked: 1074
  • Likes Given: 590
Re: Chunky Pixel Curator - WIP
« Reply #38 on: 16:04, 19 November 14 »
I would try but I don't think I have the stuff to get a dsk file running on my 464.
Favorite CPC games: SwitchBlade, Stryker in the Crypts of Trogan, Turrican II, UN Squadron, Oh Mummy

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #39 on: 16:15, 19 November 14 »
I would try but I don't think I have the stuff to get a dsk file running on my 464.

No probs, thanks anyway.
 :)
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1981
  • Likes Given: 4650
Re: Chunky Pixel Curator - WIP
« Reply #40 on: 18:50, 19 November 14 »
Waiting for the next update with some more rooms.  :) :) :)


I think walking that way is just great. All this turning around is always confusing me.  ;)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.930
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3408
  • Likes Given: 6115
Re: Chunky Pixel Curator - WIP
« Reply #41 on: 20:44, 19 November 14 »
Thanks for the photos mate, they really put a smile on my face!

Unfortunately my parents didn't see it fit to take any of me using it back in the day... :(

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.891
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1864
Re: Chunky Pixel Curator - WIP
« Reply #42 on: 10:20, 20 November 14 »
Yes, the carry bit being changed in the F register is what was corrupting my code.
Silly mistake on my part.


Though interesting it was originally working in Winape, you might have to forward a copy of the original to Richard so he can work out why Winape's not crashing.  :D
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #43 on: 13:35, 20 November 14 »
Though interesting it was originally working in Winape, you might have to forward a copy of the original to Richard so he can work out why Winape's not crashing.  :D

Yep, I reckon I might just do that.
 8)
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline Carnivius

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.489
  • Country: gb
  • Mayhem Attack Squad
    • index.php?action=treasury
  • Liked: 1074
  • Likes Given: 590
Re: Chunky Pixel Curator - WIP
« Reply #44 on: 13:50, 20 November 14 »
Having to ask the author of a software as to why it's NOT crashing?  What a strange inversion.  :)
Favorite CPC games: SwitchBlade, Stryker in the Crypts of Trogan, Turrican II, UN Squadron, Oh Mummy

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #45 on: 13:54, 20 November 14 »
Having to ask the author of a software as to why it's NOT crashing?  What a strange inversion.  :)

 :laugh:
It's certainly the first time I've ever needed to do that!

If it is indeed a problem with the emulator, it's probably just a small Z80 core inaccuracy.
In any case, it's very easy to work around, and certainly doesn't appear to have been a problem for all these years.
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline opqa

  • CPC664
  • ***
  • Posts: 73
  • Country: es
  • Liked: 89
  • Likes Given: 7
Re: Chunky Pixel Curator - WIP
« Reply #46 on: 15:17, 20 November 14 »
My bet is that the crash is related to the H or the N flag. 'add hl,de' affects C,H and N flags.

The C flag is widely used and an error with that one would have been noticed long ago, but on the contrary H (half-carry) and N (set if the last operation was a substraction), are rarely used, they don't even have dedicated jump instructions.
Moreover, in a discussion I recently had with Syx in a spanish forum he told me precisely about this. He knew for sure that WinAPE doesn't handle the undocumented flags correctly. He told me that it was because it uses directly x86 flags, that are equal for the "standard" ones (C, P/V, Z maybe S...) but not for the others.

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.349
  • Country: au
    • index.php?action=treasury
  • Liked: 1002
  • Likes Given: 1193
Re: Chunky Pixel Curator - WIP
« Reply #47 on: 15:20, 20 November 14 »
My bet is that the crash is related to the H or the N flag. 'add hl,de' affects C,H and N flags.

The C flag is widely used and an error with that one would have been noticed long ago, but on the contrary H (half-carry) and N (set if the last operation was a substraction), are rarely used, they don't even have dedicated jump instructions.
Moreover, in a discussion I recently had with Syx in a spanish forum he told me precisely about this. He knew for sure that WinAPE doesn't handle the undocumented flags correctly. He told me that it was because it uses directly x86 flags, that are equal for the "standard" ones (C, P/V, Z maybe S...) but not for the others.

Interesting... in that case the error is probably with the H flag, as the operation isn't a subtraction.
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 908
  • Liked: 442
  • Likes Given: 73
Re: Chunky Pixel Curator - WIP
« Reply #48 on: 22:31, 20 November 14 »
My bet is that the crash is related to the H or the N flag. 'add hl,de' affects C,H and N flags.

The C flag is widely used and an error with that one would have been noticed long ago, but on the contrary H (half-carry) and N (set if the last operation was a substraction), are rarely used, they don't even have dedicated jump instructions.
Moreover, in a discussion I recently had with Syx in a spanish forum he told me precisely about this. He knew for sure that WinAPE doesn't handle the undocumented flags correctly. He told me that it was because it uses directly x86 flags, that are equal for the "standard" ones (C, P/V, Z maybe S...) but not for the others.

ADD HL,DE will also affect bits 3 and 5 of F, flags so obscure they don't even officially have names!

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: Chunky Pixel Curator - WIP
« Reply #49 on: 03:50, 26 November 14 »
ADD HL,DE will also affect bits 3 and 5 of F, flags so obscure they don't even officially have names!

It's most likely one of the obsure flag bits like bit 3 or 5. I will be fixing the flags for the release after next.