Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

ZirToken

A community discussion post from the original code:zIRON forum.

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

aha, i think i know the problem - can you try remove the comment

// note well , in basic there is no semicolon at end of file

if it works i know how to fix :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

yes

http://www.freewebs.com/ogremagic/index.htm

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

note , my previous post is , yes i redownload it , now i will test the removing comment

http://www.freewebs.com/ogremagic/index.htm

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

yes when removing comment it works

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

ok i've updated the 1.1.27.5 alpha package :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok works fine

i got an other error here

program WIN32CUI 'Basic Syntax test';

#include 'console.zir';

function  H_strcpy(Dword dst,src)
{ 
  Eax = dst; 
  Edx = src; 
  push Eax;
  BL =  [Edx]; 
  while ( BL != 0)  
   { 
      [Eax] = BL; 
      Eax++; Edx++; 
      BL =  [Edx]; 
   }  
  [Eax] = 0;
  pop Eax;
} 

eax = 1;
print('eax = ', eax:int, '\r\n');

Dim Var as int32  // note well , in basic there is no semicolon at end of file

DIM Name$

DIM a AS int32, b AS Dword, c AS char

dim k%

dim S!

dim M#

Var = 1000;
a = -10;
b = 150;
c = ord('A');
k = -2000;
S = 1.5;  //<<<<<<<<<<<<<<<<<<<< this giave error
M = 2.0;

H_strcpy(@Name , 'Emil');

print('Var = ', Var, '\r\n');
print('a = ', a, '\r\n');
print('b = ', b, '\r\n');
print('c = ');
WriteLnEx(@c,1);
print('k = ', k, '\r\n');
WriteLnEx(@Name,4);

wait_key(nil);
ExitProcess(0);

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

at current release, i have not done much on the higher level FPU assignment, i will gradually get round to it, else you can try mov.

mov S, 1.5

i will see about adding assignment shortly :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok ,

thank you.

http://www.freewebs.com/ogremagic/index.htm