evt -> event

This commit is contained in:
xmm15 2020-02-16 00:25:32 -06:00
parent 4a879b1d3f
commit 6583ffe321
18 changed files with 361 additions and 395 deletions

Binary file not shown.

View File

@ -354,7 +354,7 @@ U0 Psalmody(U8 *dirname="~/Psalmody")
psm_octave=4,timeout_val,timeout_val2,old_doc_flags;
U8 *filename=NULL,*st,*st2;
PsmNote *tmpn;
F64 psm_duration=1.0,d,evt_time=tS,note_down_time=tS;
F64 psm_duration=1.0,d,event_time=tS,note_down_time=tS;
CCtrl *c=TempoNew;
if (DocPut) old_doc_flags=DocPut->flags;
@ -477,7 +477,7 @@ mo_got_message:
col=0;
break;
case MESSAGE_KEY_DOWN:
evt_time=tS;
event_time=tS;
if ('0'<=arg1<='9') {
psm_octave=arg1-'0';
PsmMenu(psm_octave);
@ -722,7 +722,7 @@ mo_got_message:
}
break;
case MESSAGE_KEY_UP:
evt_time=tS;
event_time=tS;
break;
case MESSAGE_MS_MOVE:
if (arg2>18*FONT_HEIGHT)
@ -757,7 +757,7 @@ mo_got_message:
music.tempo=4.4*tempo_state.tempo/TEMPO_RANGE+0.5;
music.stacatto_factor=0.88*tempo_state.stacatto/TEMPO_RANGE+0.12;
tmpn->duration=PsmConvertDuration(
music.tempo*(evt_time-note_down_time));
music.tempo*(event_time-note_down_time));
PsmSetWidth(tmpn);
QueueInsert(tmpn,psm.cur_note->last);
}

Binary file not shown.

View File

@ -37,7 +37,7 @@ _WELL_OPTIMIZED1::
_WELL_OPTIMIZED2:: //Unrolled
XOR RAX,RAX
MOV RCX,SAMPLES-1
MOV RCX,SAMPLES-1
@@05: ADD RAX,RCX
DEC RCX
ADD RAX,RCX

View File

@ -1,25 +1,6 @@
$FG,5$$WW,1$$TX+CX,"ZenithOS Charter"$$FG$
Why did they make Solomon's Temple? It was a direction to look, to focus on, a special place for meditation, to do offerings, a community center, a home to God's beauty, that encouraged love of God. People cherished God's temple, beautifying it with gold and all fine things to show love of God, as great $TX,"cathedrals",HTML="https://www.youtube.com/watch?v=xkfmK-CLvcc"$ were decorated with astounding, awe-striking intricate art and gargoyles, incredible devotion to God with hours of effort, toiling and slaving-away for the glory of God, for families with children to see $TX,"stained-glass",HTML="https://www.youtube.com/watch?v=t8g1e-JLrhM"$ windows and tomes with ridiculously elaborate $TX,"calligraphy",HTML="https://www.youtube.com/watch?v=Oa8gMb0YC68"$ to show love of God, from a people who did little else but show love toward God, lived in dire conditions by today's standards, yet with so much difficulty scraping-by, found the time to devote $TX,"even all free-time",HTML="https://www.youtube.com/watch?v=tZw5V4XuUIo"$ to God!
1 Kings 6:21 (King James)
$ID,5$6:21 So Solomon overlaid the house within with pure gold: and he made
a partition by the chains of gold before the $FG,4$oracle$FG$; and he overlaid
it with gold.
6:22 And the whole house he overlaid with gold, until he had finished
all the house: also the whole altar that was by the $FG,4$oracle$FG$ he overlaid
with gold.
6:23 And within the $FG,4$oracle$FG$ he made two cherubims of olive tree, each
ten cubits high.
$ID,-5$
* ZenithOS is God's official temple. Just like Solomon's temple, this is a community focal point where offerings are made and God's oracle is consulted.
* God said $FG,2$640x480 16 color$FG$ graphics is a covenant like circumcision. Children will do offerings. Think of 16 colors like the Simpson's cartoons. In the future, even if one GPU were universal, we would still keep 640x480 16 color and not use GPU acceleration. Graphics operations should be transparent, not hidden in a GPU.
* God said $FG,2$640x480 16 color$FG$ graphics is a covenant like circumcision. Children will do offerings. Think of 16 colors like the Simpson's cartoons. In the future, even if one GPU were universal, we would still keep 640x480 16 color and not use GPU acceleration. Graphics operations should be transparent, not hidden in a GPU.
* God said to use a single-voice 8-bit signed MIDI-like sample for sound. God does not want death screams, perhaps, because God has PTSD or soldiers have PTSD. (Imagine wounded on battlefields.)
@ -31,7 +12,7 @@ $ID,-5$
* Low line count is the highest good, so it is easy to learn the whole thing. Users should see the light at the end of the tunnel. One file system, for example, is better than many file systems.
* There is a limit of 100,000 lines of code for all time, not including applications and demos. $FG,4$Code comments count$FG$, however. Currently, there are $TX,"81,494",D="DD_TEMPLEOS_LOC"$ lines of code. $FG,4$3rd party libraries are banned$FG$ because they circumvent the intent of this limit. The vision is a Commodore 64 ROM -- a fixed core API that is the only dependency of applications. Dependency on components and libraries creates a hell that is no longer blissful.
* There is a limit of 100,000 lines of code for all time, not including applications and demos. $FG,4$Code comments count$FG$, however. Currently, there are $TX,"80,849",D="DD_TEMPLEOS_LOC"$ lines of code. $FG,4$3rd party libraries are banned$FG$ because they circumvent the intent of this limit. The vision is a Commodore 64 ROM -- a fixed core API that is the only dependency of applications. Dependency on components and libraries creates a hell that is no longer blissful.
* The metric for resolving all ZenithOS code governance issues is how fast the compiler compiles itself and the kernel with $LK,"BootHDIns",A="MN:BootHDIns"$(). The $LK,"CosmiC",A="FI:::/Doc/CosmiC.DD"$ language should be changed to optimize this metric, as I did when I changed type casting from prefix standard C to postfix $LK,"CosmiC",A="FI:::/Doc/CosmiC.DD"$, but we need a rule to prevent degenerating into a brainfuck language.

View File

@ -1,4 +1,4 @@
$WW,1$$FG,5$$TX+CX,"Glossery"$$FG$
$WW,1$$FG,5$$TX+CX,"Glossary"$$FG$
$TR,"Abbreviations"$
$ID,2$$FG,2$Abs$FG$ Absolute
@ -20,11 +20,7 @@ $FG,2$Blk$FG$ Block
$FG,2$Bmp$FG$ BitMap
$FG,2$Bttn$FG$ Button
$FG,2$Buf$FG$ Buffer
$FG,2$Bwd$FG$ Backward
$FG,2$CB$FG$ Call-Back, Code Block
$FG,2$Config$FG$ Config
$FG,2$Change$FG$ Change
$FG,2$Check$FG$ Check
$FG,2$Clip$FG$ Clipboard
$FG,2$Clus$FG$ Cluster
$FG,2$Cmd$FG$ Command
@ -34,14 +30,11 @@ $FG,2$Const$FG$ Consant
$FG,2$Cont$FG$ Continue
$FG,2$Ctrl$FG$ Control. The ctrl key is indicated with "$FG,2$^$FG$" in documentation.
$FG,2$Cur$FG$ Current
$FG,2$Convert$FG$ Convert
$FG,2$Debug$FG$ Debug
$FG,2$Dbl$FG$ Double
$FG,2$DC$FG$ Device Context
$FG,2$Del$FG$ Delete
$FG,2$Desc$FG$ Descriptor, Description
$FG,2$Dev$FG$ Device
$FG,2$Default$FG$ Default
$FG,2$Dir$FG$ Directory, Direction
$FG,2$Div$FG$ Divide
$FG,2$Doc$FG$ Document
@ -56,13 +49,11 @@ $FG,2$Exe$FG$ Execute
$FG,2$Ext$FG$ Extern, Extended, Extract
$FG,2$Feat$FG$ Feature
$FG,2$FG$FG$ Foreground
$FG,2$Format$FG$ Format
$FG,2$Fwd$FG$ Forward
$FG,2$FPS$FG$ Frames per Second, First Person Shooter
$FG,2$fp_$FG$ Function ptr
$FG,2$Fun$FG$ Function
$FG,2$Gen$FG$ Generate
$FG,2$Global$FG$ Global
$FG,2$Gr$FG$ Graphic
$FG,2$Hndlr$FG$ Handler
$FG,2$IDE$FG$ Integrated Drive Electronics, Integrated Development Environment
@ -91,8 +82,6 @@ $FG,2$Mgr$FG$ Manager
$FG,2$Mid$FG$ Middle
$FG,2$Mon$FG$ Month
$FG,2$MP$FG$ MultiProcessor
$FG,2$Mouse$FG$ Mouse
$FG,2$Message$FG$ Message
$FG,2$Num$FG$ Number
$FG,2$Obj$FG$ Object
$FG,2$Occ$FG$ Occurrence
@ -118,7 +107,6 @@ $FG,2$Queue$FG$ Queue
$FG,2$Rand$FG$ Random
$FG,2$Ref$FG$ Reference
$FG,2$Reg$FG$ Register, Registry, Regular
$FG,2$Remove$FG$ Remove
$FG,2$Rep$FG$ Report, Repeat
$FG,2$Res$FG$ Result
$FG,2$Rev$FG$ Reverse, Reversed
@ -127,7 +115,6 @@ $FG,2$Reset$FG$ Reset
$FG,2$Rot$FG$ Rotation
$FG,2$Rx$FG$ Receive
$FG,2$Sched$FG$ Sceduler
$FG,2$Screen$FG$ Screen
$FG,2$Sec$FG$ Second, Secondary
$FG,2$Sect$FG$ Sector
$FG,2$Sel$FG$ Select, Selected
@ -135,11 +122,9 @@ $FG,2$Seq$FG$ Sequence
$FG,2$Sound$FG$ Sound
$FG,2$SP$FG$ SingleProcessor
$FG,2$Src$FG$ Source
$FG,2$Server$FG$ Server
$FG,2$Stat$FG$ Status, Statistic
$FG,2$Std$FG$ Standard
$FG,2$Stack$FG$ Stack
$FG,2$Statement$FG$ Statement
$FG,2$Str$FG$ String
$FG,2$Sym$FG$ Symbol
$FG,2$Sync$FG$ Synchronization

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -2989,7 +2989,7 @@ public class CMouseHardStateGlobals
Bool bttns[5],
has_wheel,
has_ext_bttns,
evt, //Private
event, //Private
installed, //Private
install_in_progress, //Private
irqs_working; //Private

View File

@ -523,7 +523,7 @@ public extern I64 GetKey(I64 *_scan_code=NULL,Bool echo=FALSE,
public extern I64 GetS(U8 *buf,I64 size,Bool allow_ext=TRUE);
public extern U8 *GetStr(U8 *message=NULL,U8 *default=NULL,I64 flags=0);
extern U0 KbdInit();
public extern I64 KbdMouseEvtTime();
public extern I64 KbdMouseEventTime();
extern U0 KbdMouseHandler(Bool poll_kbd,Bool poll_mouse);
extern U0 KbdMouseInit();
extern I64 KbdMessagesQueue();

View File

@ -483,7 +483,7 @@ I64 KbdMessagesQueue()
return message_code;
}
I64 KbdMouseEvtTime()
I64 KbdMouseEventTime()
{//Timestamp of last key or mouse event.
if (mouse_hard.timestamp>kbd.timestamp)
return mouse_hard.timestamp;

View File

@ -222,12 +222,12 @@ U0 MouseHardSetPost()
if (mouse_hard.pos.x!=mouse_hard_last.pos.x || mouse_hard.pos.y!=mouse_hard_last.pos.y ||
mouse_hard.pos.z!=mouse_hard_last.pos.z) {
mouse_hard.evt=TRUE;
mouse_hard.event=TRUE;
MouseHardSpeedSet;
} else
for (i=0;i<5;i++)
if (mouse_hard.bttns[i]!=mouse_hard_last.bttns[i]) {
mouse_hard.evt=TRUE;
mouse_hard.event=TRUE;
break;
}
}
@ -305,7 +305,7 @@ Bool MouseHardDriverInstall(I64 dummy=0) //can be spawned
OutU8(0xA1,InU8(0xA1)&~0x10);
KbdMouseReset;
mouse_hard.install_attempts++;
mouse_hard.installed=mouse_hard.evt=i;
mouse_hard.installed=mouse_hard.event=i;
mouse_hard.install_in_progress=FALSE;
return mouse_hard.installed;
}

Binary file not shown.

View File

@ -227,7 +227,7 @@ U0 ACTask(I64)
ac.cur_word=NULL;
while (TRUE) {
if (scan_code&(SCF_CTRL|SCF_ALT) ||
GetTSC>KbdMouseEvtTime+counts.time_stamp_freq>>1) {
GetTSC>KbdMouseEventTime+counts.time_stamp_freq>>1) {
last_scan_code=scan_code;
scan_code=kbd.scan_code;
}

View File

@ -348,7 +348,7 @@ public U0 DocPutKey(CDoc *doc,I64 ch=0,I64 sc=0)
} else {
//$LK,"::/Zenith/God/HSNotes.DD"$
FifoU8Flush(god.fifo);
GodBitsIns(GOD_GOOD_BITS,KbdMouseEvtTime>>GOD_BAD_BITS);
GodBitsIns(GOD_GOOD_BITS,KbdMouseEventTime>>GOD_BAD_BITS);
if (sc&SCF_SHIFT)
GodBiblePassage;
else

View File

@ -87,7 +87,7 @@ I64 GodDoodleBits(I64 num_bits)
} else if ('0'<=god.doodle_ch<='9')
GodDoodleSmooth(god.doodle_ch-'0');
else
GodDoodleBitsIns(GOD_GOOD_BITS,KbdMouseEvtTime>>GOD_BAD_BITS);
GodDoodleBitsIns(GOD_GOOD_BITS,KbdMouseEventTime>>GOD_BAD_BITS);
}
}
return res;

View File

@ -9,7 +9,7 @@ U8 *TimeStampCB(CDoc *,CDocEntry *,CTask *mem_task)
U8 *KbdMouseTimeCB(CDoc *,CDocEntry *,CTask *mem_task)
{
U8 *st=MAlloc(64,mem_task);
StrPrint(st,"%X",KbdMouseEvtTime>>GOD_BAD_BITS);
StrPrint(st,"%X",KbdMouseEventTime>>GOD_BAD_BITS);
return st;
}
@ -36,7 +36,7 @@ I64 GodPick(U8 *message=NULL)
"a random num from a timer.\n",message);
PopUpTimerOk(st,"\n\nThe $LK+PU,"Holy Spirit",A="FI:::/Zenith/God/HSNotes.DD"$ can puppet you.\n\n");
Free(st);
return KbdMouseEvtTime>>GOD_BAD_BITS;
return KbdMouseEventTime>>GOD_BAD_BITS;
}
public U0 GodBitsIns(I64 num_bits,I64 n)

View File

@ -222,10 +222,10 @@ U0 WinMouseUpdate()
Bool set=FALSE;
if (mouse_hard.installed) {
mouse.has_wheel=mouse_hard.has_wheel;
if (mouse_hard.evt) {
if (mouse_hard.event) {
MouseUpdate(mouse_hard.pos.x,mouse_hard.pos.y,mouse_hard.pos.z,
mouse_hard.bttns[0],mouse_hard.bttns[1]);
mouse_hard.evt=FALSE;
mouse_hard.event=FALSE;
set=TRUE;
}
}