CPCWiki forum

General Category => Programming => Topic started by: geebus on 17:04, 16 October 19

Title: What day of the week was it on??
Post by: geebus on 17:04, 16 October 19
Hi all,It's been quite some time since i posted on here, but I thought i'd share my program that I made in BASIC to help me learn how to actually program in BASIC.The program will tell you what day of the week it is/was on a specific date between 1754 and 2399.
It is bloated out to the max at the moment for what it is, so i'll work on cutting it down a bit and then i'm going to try convert it into ASM and maybe spruce it up a bit graphics wise.
Title: Re: What day of the week was it on??
Post by: geebus on 19:53, 17 October 19
Just a little update.
I've spent a big part of my day working out how to cut my code down and i've since cut out 66 lines.
I'm quite happy with that so far. But there are parts that are annoying me still. I don't think i'll be able to cut it down much more with my level of BASIC knowledge at the moment. Maybe once I can write BASIC without looking up syntax etc like I can with other languages, will I be able to cut it down more.
I think i'll concentrate on making it in assembly now.
Just porting over a bit here and a bit there untill it all works and all i'm doing is one call in BASIC.
Good to have goals now eh!
Title: Re: What day of the week was it on??
Post by: Gryzor on 15:42, 13 March 20
This should be interesting; calculating the day, one of the things I always wondered about but never actually bothered to look up...