Discussion in "Project Doubts" started by    junied    Aug 8, 2006.
Tue Aug 08 2006, 02:08 PM
#1
hi !
ajay i had just tried to run the code in keil and got A6 error

please have a look at this code and try to compile it in keil
build: mov a,#40h ;Building custom character routine
acall command
build_char 04h,eh,eh,eh,1fh,0h,4h,0h ;BELL
build_char 1h,3h,0fh,0fh,0fh,3h,1h,0h ;SPEAKER OFF
build_char 8h,10h,0h,18h,0h,10h,8h,0h ;SPEAKER ON
build_char 0h,0eh,15h,17h,11h,0eh,0h,0h ;CLOCK
build_char 0h,1h,3h,16h,1ch,8h,0h,0h ;OK
build_char 0ah,1fh,1fh,1fh,0eh,4h,0h,0h ;HEART
build_char 2h,3h,2h,0eh,1eh,0ch,0h,0h ;MUSIC
ret
and i have initialized

build_char macro P1,P2,P3,P4,P5,P6,P7,P8 irp arg, mov a,#arg acall data_in endm endm
; build_char macro P1,P2,P3,P4,P5,P6,P7,P8*/ ;Macro for building a custom charac
; irp arg, <P1,P2,P3,P4,P5,P6,P7,P8>
mov a,#arg
acall data_in
endm
endm

this code at beginning
so please reply!!!
Tue Aug 08 2006, 02:36 PM
#2
its working.. what the problem in it? i mean.. you have to define each and eveything which is being used inside
i.e. the subroutine command, data_in
the code you have posted will not work alone

-------------------------
build_char macro P1,P2,P3,P4,P5,P6,P7,P8
 irp arg,
  mov a,#arg
  acall data_in
 endm
endmbuild: mov a,#40h ;Building custom character routine
acall command
build_char 04h,eh,eh,eh,1fh,0h,4h,0h ;BELL
build_char 1h,3h,0fh,0fh,0fh,3h,1h,0h ;SPEAKER OFF
build_char 8h,10h,0h,18h,0h,10h,8h,0h ;SPEAKER ON
build_char 0h,0eh,15h,17h,11h,0eh,0h,0h ;CLOCK
build_char 0h,1h,3h,16h,1ch,8h,0h,0h ;OK
build_char 0ah,1fh,1fh,1fh,0eh,4h,0h,0h ;HEART
build_char 2h,3h,2h,0eh,1eh,0ch,0h,0h ;MUSIC
ret
-----------------------------------------------


[ Edited Tue Aug 08 2006, 02:38 PM ]
Tue Aug 08 2006, 03:03 PM
#3
look at these errors in keil!! u may understand the problem from these errors


[ Edited Tue Aug 08 2006, 06:49 PM ]
Tue Aug 08 2006, 06:53 PM
#4
first of all... please remove the startup.A51 file coz we are not using it in this case.. we use it mostly when we are dealing with C and assembly both
and if you are using it. send me the updated code
tell me which version of C51 you are using...
Tue Aug 08 2006, 08:43 PM
#5
i have removed the startup file although it dosent make any difference untill u add it in ur code.u wanted the information about my keil version so i am sending it to u


[ Edited Wed Aug 09 2006, 06:20 AM ]
Tue Aug 08 2006, 10:29 PM
#6
thats good
Tue Aug 08 2006, 10:32 PM
#7
and you have removed the license part check your hotmail mailbox
Wed Aug 09 2006, 05:40 AM
#8
There is no problem with keil. it is working.
Wed Aug 09 2006, 05:52 AM
#9
it is working fine. it is also a full project. :hug


[ Edited Wed Aug 09 2006, 06:24 AM ]
Wed Aug 09 2006, 06:07 AM
#10
:rose


[ Edited Sun Aug 13 2006, 05:28 PM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Apr 12 2021, 11:54 AM
Joe N
I have recently launched my own site, and I am looking to provide value for you for free, by giving away 26 professional level blog post templates (worth $297).
Mon Apr 12 2021, 09:24 AM
Aretha
Hey, I think your site might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog! https://onanadiete.ru/alpha-numeric-reasoning-questions-and-answers-pdf.pdf alpha numeric reasoning questions and answers pdf alpha numeric reasoning questions and answers pdf

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 88, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123