flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > included file cannot include another file

Author
Thread Post new topic Reply to topic
zhong



Joined: 12 Jan 2017
Posts: 12
Location: youxi, jiangjin, chongqing, china.
included file cannot include another file
if include file include another, the compiler make mistake, so the safe include level for fasm is only 1, never 2 above.

_________________
zhengxing zhong.
Post 28 Feb 2017, 08:27
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 14672
Location: Origae-6
Please show your code. Because I don't experience this problem.
Post 28 Feb 2017, 08:40
View user's profile Send private message Visit poster's website Reply with quote
zhong



Joined: 12 Jan 2017
Posts: 12
Location: youxi, jiangjin, chongqing, china.
now i forge this. i already use sub thread to avoid this.

program.asm{
format mz
file 'c:\error\a86\peng\st_bios.com';can't change
file 'c:\error\a86\peng\40_25_b.com'
file 'c:\error\a86\peng\0-7_s.com'
file 'c:\error\a86\peng\0-page.com';can't change
include 'type_0eh.asm'
include 'frame.asm'
include 'frame2.asm'
include 'correct.asm'
include 'error.asm'}

frame.asm{
mov cx,0dh;top line
mov ah,2h
mov dh,0h
mov dl,0h
mov bh,0h
int 10h
_loop:
;call correct
include 'correct.asm'
loop _loop

mov cx,0dh;bottom line
mov ah,2h
mov dh,18h
mov dl,0h
mov bh,0h
int 10h
_loop2:
;call correct
include 'correct.asm'
loop _loop2 }

correct.asm{
mov ah,'j'
mov [_byte],ah
_0eh
mov ah,'n'
mov [_byte],ah
_0eh
mov ah,'s'
mov [_byte],ah
_0eh
ret}

type_0e.asm{
macro _0eh{
mov ah,0eh
mov al,[_byte]
mov bh,0h
int 10h}}
Post 05 Mar 2017, 10:46
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.