Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd1fb7a

Browse files
Revision 6 Version 14
A small bug removed
1 parent3db371d commitcd1fb7a

File tree

8 files changed

+595
-560
lines changed

8 files changed

+595
-560
lines changed

‎M2000.TLB‎

0 Bytes
Binary file not shown.

‎M2000.VBR‎

Lines changed: 541 additions & 541 deletions
Large diffs are not rendered by default.

‎M2000.exp‎

0 Bytes
Binary file not shown.

‎M2000.lib‎

0 Bytes
Binary file not shown.

‎M2000.vbp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ HelpContextID="0"
153153
CompatibleMode="0"
154154
CompatibleEXE32="m2000.exe"
155155
MajorVer=14
156-
MinorVer=5
156+
MinorVer=6
157157
RevisionVer=0
158158
AutoIncrementVer=0
159159
ServerSupportFiles=1

‎M2000.vbw‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Module3 = 182, 182, 821, 628,
1212
gpp1 = 104, 104, 953, 700,
1313
AnyPrinter = 0, 0, 0, 0, C
1414
Module5 = 182, 182, 1449, 741,
15-
Module2 = 234, 234, 827, 807,Z
15+
Module2 = 234, 234, 827, 807,
1616
PicHandler = 26, 26, 585, 519,
1717
Module4 = 78, 78, 1526, 611,
1818
cDIBSection = 208, 208, 1528, 712,
@@ -51,7 +51,7 @@ Group = 156, 156, 1438, 734,
5151
stdCallFunction = 104, 104, 1166, 562, C
5252
mdlIDispatch = 234, 234, 1521, 812,
5353
PropReference = 208, 208, 859, 654,
54-
Module1 = 26, 26, 585, 519,
54+
Module1 = 26, 26, 585, 519,Z
5555
MyPopUp = 156, 156, 1013, 602, , 52, 52, 729, 545, C
5656
Module7 = 182, 182, 741, 675, C
5757
cJpeg = 0, 0, 0, 0, C

‎Mod_Text.bas‎

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Public TestShowBypass As Boolean, TestShowSubLast As String
9696
Public feedback$, FeedbackExec$, feednow$ ' for about$
9797
Global Const VerMajor = 14
9898
Global Const VerMinor = 0
99-
Global Const Revision =5
99+
Global Const Revision =6
100100
Private Const doc = "Document"
101101
Public UserCodePage As Long, DefCodePage As Long
102102
Public cLine As String ' it was public in form1
@@ -16253,6 +16253,53 @@ Function IsLabelSYMB33(A$, r$, chars As Long) As Boolean ' ok
1625316253
chars = LB + 1
1625416254
End If
1625516255
End Function
16256+
Function IsLabelSYMB33N(A$, r$, chars As Long) As Boolean ' ok
16257+
Dim rr&, c$, LB As Long, mb As Long, LLB As Long
16258+
LLB = Len(A$)
16259+
r$ = vbNullString
16260+
If LLB = 0 Then IsLabelSYMB33N = 0: Exit Function
16261+
mb = 0
16262+
LB = 1
16263+
Do While LB <= LLB
16264+
c$ = Mid$(A$, LB, 1)
16265+
If AscW(c$) < 256 Then
16266+
Select Case AscW(c$)
16267+
Case 32, 160, 9
16268+
If LB - mb > 1 Then
16269+
LB = LB - 1
16270+
Exit Do
16271+
Else
16272+
mb = LB
16273+
End If
16274+
Case 46 '"."
16275+
If LB > mb Then
16276+
rr& = 1
16277+
Else
16278+
IsLabelSYMB33N = 0
16279+
Exit Function
16280+
End If
16281+
Case 65 To 90, 97 To 122 ' "A" To "Z", "a" To "z"
16282+
rr& = 1 'is an identifier or floating point variable
16283+
Case 48 To 57
16284+
If rr& <> 1 Then
16285+
LB = LB - 1
16286+
Exit Do
16287+
End If
16288+
Case Else
16289+
LB = LB - 1
16290+
Exit Do
16291+
End Select
16292+
Else
16293+
rr& = 1 'is an identifier or floating point variable
16294+
End If
16295+
LB = LB + 1
16296+
Loop
16297+
r$ = Mid$(A$, mb + 1, LB - mb)
16298+
IsLabelSYMB33N = rr&
16299+
If rr& <> 0 Then
16300+
chars = LB + 1
16301+
End If
16302+
End Function
1625616303
Function IsLabelF(A$, rrr$) As Long
1625716304
Dim buf$
1625816305
If Len(A$) < 129 Then IsLabelF = IsLabelF1(A$, rrr$): Exit Function
@@ -40965,7 +41012,7 @@ End If
4096541012
Exit Function
4096641013
Else
4096741014
i = 0
40968-
IfIsLabelSYMB33(rest$, what$, i) Then
41015+
IfIsLabelSYMB33N(rest$, what$, i) Then
4096941016
If Mid$(rest$, i, 2) = "$(" Then
4097041017
x1 = 6
4097141018
what$ = myUcase(what$, True) + "$("

‎readme.txt‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
M2000 Interpreter and Environment
2-
Version 14 revision5 (updated - info file) active-X
2+
Version 14 revision6 active-X
33

4-
1. frac(expression!) return fraction of the result of expression. frac(expression) return fraction of the result of the rounded number ( at the 13th digit).
5-
2. Writable() now work without raising error for drives which didn't exist. Another way to check if a path may exist then ShortDir$(path$) return the short dir or if not exist return empty string. So shortdir$("a:")="" means drive a not exist.
6-
3. Declare a small fix for ..., which now we can use it in a multiline declaration, using optional remarks using ' or // or \\:
7-
mybuf$=String$(Chr$(0), 1000)
8-
Declare Global MyPrint Lib C "msvcrt.swprintf" {
9-
&sBuf$, ' byref pass - pass address of first byte of string
10-
sFmt$, ' by value pass
11-
... ' variadic parameters - always as last parameter
12-
}
13-
A=MyPrint(&myBuf$, "P1=%s, P2=%d, P3=%.4f, P4=%s", "ABC", 123&, 1.23456, "xyz")
14-
Print Left$(myBuf$,A) ' A has the number of characters (words - 2 bytes per character)
4+
One bug on STACK statement when we pass a variable which hold a string with a stack as a string (for numbers/strings only). Name for variables now works with numbers inside name, so variable a1212$ can be used now.
155

166

177

@@ -36,8 +26,6 @@ install ca.crt as root certificate (optional).
3626

3727
http://georgekarras.blogspot.gr/
3828

39-
https://rosettacode.miraheze.org/wiki/M2000_Interpreter (544 tasks)
40-
Old (not working rosettacode.org)
4129
https://rosettacode.org/wiki/Category:M2000_Interpreter (544 tasks)
4230

4331
Code/Exe files can be found here:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp