Skip to content

Add timer. #1

@SergeyDr

Description

@SergeyDr

Hello,
I use your project with TTGO VGA32. And it's work great!
I had made some enhancement with it.
Add timer BDOS function, test it and it's work fine.
Code very simple. In file cpm.h at line 1362 add:
case 240:
{
unsigned long tmp;
tmp = millis();
HL = tmp & 0xFFFF;
DE = (tmp >> 16) & 0xFFFF;
break;
}
BDOS function 240. Return milliseconds from last turn on in DE HL.
May be it's need some #ifdef for other boards.... May be assign to another BDOS function.
Please include this in next version
WBR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions