csavas
14th Jul 2019
21st Jul 2019
Day Of The Week Calculator! Write in a date (example: 2019.07.14), and it writes out which day is that (example: Sunday). Works in the range 1587.11.01. - 9999.12.31. Writes error if month not 1-12 or day not 1-31. No errors shown for writing February 31
electronic
week
algorithm
code
r216k2a
calculator
dayofweek
subframe
r216
computer
Comments
-
i said it twice cuz 2 is better
-
type in "2,0,2,2,0,2,2,2" you get 2nd day of the week wich is TUESDAY making it TWOSDAY
-
my favorite number is 2 , in year 2022 february 22nd its tuesday , the second day of the week , making it TWOSDAY
-
TakMashido: Sometimes you have to think outside the box/computer.
-
"I havn't figured how I/O works[...]". Hmm... Are you just hacked R216K2A?
-
LBPHacker: Anyways, if I used the normal I/O I had to make the keypad part more complex by making it listen and send attention requests (?), and getting the timing right. (2/2)
-
LBPHacker: I wanted to make a simple echo program for the R2 in the demo. But then I saw that the FILT between terminal and keyboard changes to the same ctype no matter what I press. From the manual I get to know that it is the attention request. I made the computer wait for it, and send attention request back. Soon the keyboard sends the correct character code. I used some NOPs to make sure it arrives before using recv and then send, but send always sends the same code, a 'G'. (1/2)
-
haha I tried 1st January 1970. I thought it would break it but no, it shows Thursday
-
Wow thats was cool
-
Lol, cool. Though I feel I must ask what perplexes you so much about how I/O ports work.