Post Reply 
Base conversion for DM41X
10-22-2023, 07:41 PM (This post was last modified: 10-23-2023 12:39 PM by Sylvain Cote.)
Post: #6
RE: Base conversion for DM41X
The following non-optimized program works on all 41's (C, CV, CX, 41CL, DM41X, etc) and assumes that the top row key is unassigned.

Local alpha label demo program:
Code:
01 LBL "ALD"         // alpha label demo
02 SF 27             // activate user keyboard
03 LBL 00            // menu label
04 "A  B  C  D E"    // menu string
05 LBL 01            // display entry point (before alpha labels so next local alpha label execution is fast)
06 PROMPT            // display string and stop
07 GTO 00            // menu loop
08 LBL A             // local alpha label *** notice, there is no quotes surrounding local alpha label ***
09 "A KEY"           // key pressed string
10 GTO 01            // display label used
11 LBL B             // local alpha label
12 "B KEY"           // key pressed string
13 GTO 01            // display label used
14 LBL C             // local alpha label
15 "C KEY"           // key pressed string
16 GTO 01            // display label used
17 LBL D             // local alpha label
18 "D KEY"           // key pressed string
19 GTO 01            // display label used
20 LBL E             // local alpha label
21 "E KEY"           // key pressed string
22 GTO 01            // display label used
23 END               // program space separator

Usage:
Code:
[XEQ][ALPHA]ALD[ALPHA]    // display: "A  B  C  D E"
[R/S]                     // display: "A  B  C  D E"
[R/S]                     // display: "A  B  C  D E"
[A]                       // display: "A KEY"
[B]                       // display: "B KEY"
[C]                       // display: "C KEY"
[R/S]                     // display: "A  B  C  D E"
[D]                       // display: "D KEY"

Edit: available local alpha labels are:
Code:
LBL A
LBL B
LBL C
LBL D
LBL E

LBL F
LBL G
LBL H
LBL I
LBL J

LBL a    // [SHIFT][A]
LBL b    // [SHIFT][B]
LBL c    // [SHIFT][C]
LBL d    // [SHIFT][D]
LBL e    // [SHIFT][E]

Sylvain Côté
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Base conversion for DM41X - Jeff_Birt - 10-21-2023, 11:52 PM
RE: Base conversion for DM41X - Jeff_Birt - 10-22-2023, 03:33 PM
RE: Base conversion for DM41X - Jeff_Birt - 10-22-2023, 06:41 PM
RE: Base conversion for DM41X - Jeff_Birt - 10-23-2023, 01:05 PM
RE: Base conversion for DM41X - Sylvain Cote - 10-22-2023 07:41 PM
RE: Base conversion for DM41X - Jeff_Birt - 10-24-2023, 02:33 PM
RE: Base conversion for DM41X - Werner - 10-23-2023, 06:54 AM



User(s) browsing this thread: 1 Guest(s)