mirror of
https://github.com/AntKrotov/oberon-07-compiler.git
synced 2026-10-05 09:45:47 +00:00
Windows32/64 (примеры): учитывается разрядность
This commit is contained in:
1 parent
c524c046f5
commit
6d4c850423
3 files changed
+5
-3
No files matched your search
@@ -0,0 +1,2 @@
|
||||
for %%f in (samples\Windows\Console\*.ob07) do Compiler.exe %%f win32con
|
||||
@pause
|
||||
@@ -18,7 +18,7 @@ IMPORT In, Out, Console;
|
||||
|
||||
|
||||
CONST
|
||||
MAX_INTEGER = 2147483647;
|
||||
MAX_INTEGER = ROR(-2, 1);
|
||||
|
||||
|
||||
VAR
|
||||
|
||||
@@ -17,7 +17,7 @@ IMPORT In, Out, API, Console;
|
||||
|
||||
|
||||
CONST
|
||||
maxCard = 7FFFFFFFH DIV 3;
|
||||
maxCard = ROR(-2, 1) DIV 3;
|
||||
List = 1;
|
||||
Count = 2;
|
||||
Max = 3;
|
||||
@@ -109,7 +109,7 @@ BEGIN
|
||||
Out.String("Iterations total = "); Out.Int(HailStone(27, Count), 1);
|
||||
Out.String(" max value = "); Out.Int(HailStone(27, Max), 1);
|
||||
Out.Ln;
|
||||
FindMax(1000000);
|
||||
FindMax(100000);
|
||||
Out.String("Done.");
|
||||
Out.Ln; In.Ln;
|
||||
|
||||
|
||||
Reference in new issue
Block a user