Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 3rd, 2006, 5:36 AM   #1
Eternal
Newbie
 
Join Date: Mar 2006
Posts: 1
Rep Power: 0 Eternal is on a distinguished road
Error - Cannot generate com file: segment-relocatable items....

hi, I have one question.

Program must CALL dirki, after 60 tic.
How I must define segments for use this code:

;---------------------------
Begin:
JMP Start
ALARMCOUNT DW ?
Dirki PROC NEAR

ret
Dirki ENDP

Start:
MOV AX,60
MOV BX,1092
MUL BX
MOV AH,0
INT 1AH
ADD AX,DX
MOV ALARMCOUNT,AX

PUSH DS
MOV AX,SEG ALARM ??????????????????????????
MOV DS,AX ??????????????????????????
MOV DX,OFFSET ALARM
MOV AL,1CH
MOV AH,25H
INT 21H
POP DS
ret
ALARM PROC FAR
Startint:
PUSHF
PUSH AX
PUSH CX
PUSH DX
PUSH DS
PUSH CS
POP DS
MOV AH,0
INT 1AH
MOV CX,ALARMCOUNT
CMP DX,CX
JNE NOT_YET
CALL Dirki
NOT_YET: POPF
POP DS
POP DX
POP CX
POP AX
IRET
ALARM ENDP
end Begin
;-----------------------------

if I use :

.model tiny
.386
.code
org 100h
begin:
bla bla bla bla bla
end begin

I have error - Cannot generate com file: segment-relocatable items...

I hope you help me!!!!!!!!

with best regards Eternal
and pleas sory for my english
Eternal is offline   Reply With Quote
Old Mar 3rd, 2006, 11:24 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
Please, use [code] tags around code. It makes it a lot easier to read.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC