Jump to content

Discordian date: Difference between revisions

Also add example output to the 8086 version
(Add 8086 assembly version)
(Also add example output to the 8086 version)
Line 254:
This program runs under DOS. It can take a date on the command line in the form
<code>MM/DD/YYYY</code>, and if a date is not given, it asks DOS for the system date
and uses that instead. It is mostly a port of the 8080 (CP/M) version, but it does use the 8086's new capabilities
and uses that instead.
 
It is mostly a port of the 8080 (CP/M) version, but it does use the 8086's new capabilities
where possible, e.g. multiplication and division, and the string lookups are done
using an 8086 string instruction.
Line 465 ⟶ 463:
tibsday: db "Saint Tib's Day$"
yold: db ' in the YOLD $'</lang>
 
{{out}}
 
<pre>C:\>ddate
Today is Pungenday, day 50 of Discord in the YOLD 3186: celebrate Chaoflux!
C:\>ddate 09/26/1995
Prickle-Pricke, day 50 of Bureaucracy in the YOLD 3161: celebrate Chaoflux!
C:\>ddate 02/29/1996
Saint Tib's Day in the YOLD 3162
C:\>ddate 07/22/2011
Pungenday, day 57 of Confusion in the YOLD 3177
C:\>ddate 01/05/2005
Setting Orange, day 5 of Chaos in the YOLD 3171: celebrate Mungday!
</pre>
 
=={{header|Ada}}==
2,114

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.