Mercurial > hg > Members > kono > nitros9-code
view level1/modules/clock2_jvemu.asm @ 3154:d29a92fff7f2
coco3fpga: Rename SD disk images to .img
To avoid confusion since they are not bootable disks,
but to be raw copied to the /sd0 partition on the
CoCo3FPGA SD card.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 07 Feb 2017 00:37:28 +0100 |
parents | f389c6bca482 |
children |
line wrap: on
line source
******************************************************************** * Clock2 - Jeff Vavasour CoCo 3 Emulator RTC Driver * * $Id$ * * Edt/Rev YYYY/MM/DD Modified by * Comment * ------------------------------------------------------------------ * 2004/07/13 Robert Gault * Added Vavasour/Collyer emulator & MESS (Disto) versions and relocated * 'GetTime equ' statement so it is not within a chip heading. * * 2004/07/31 Rodney Hamilton * Improved RTCJVEmu code, conditionalized RTC type comments. * * 1 2004/08/18 Boisy G. Pitre * Separated clock2 modules for source clarity. nam Clock2 ttl Jeff Vavasour CoCo 3 Emulator RTC Driver ifp1 use defsfile endc tylg set Sbrtn+Objct atrv set ReEnt+rev rev set $00 edition set 1 RTC.Base equ $FFC0 mod eom,name,tylg,atrv,JmpTable,RTC.Base name fcs "Clock2" fcb edition JmpTable rts nop nop bra GetTime nop rts GetTime ldx #RTC.Base ldd ,x get year (CCYY) suba #20 bmi yr1 19xx, OK as is yr0 addb #100 20xx adjustment deca also check for bpl yr0 21xx (optional) yr1 stb <D.Year set year (~YY) ldd 2,x get date std <D.Month set date (MMDD) IFNE Level-1 ldd 4,x get time (wwhh) sta <D.Daywk set day of week ELSE ldb 5,x get hour (hh) ENDC stb <D.Hour set hour (hh) ldd 6,x get time (mmss) std <D.Min set time (mmss) rts emod eom equ * end