pgmfi.org

Hacking up Honda's ECU
It is currently Fri Apr 19, 2024 1:37 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Oct 31, 2004 8:13 am 
Hello,

Please dont laught! I'm trying real hard to learn this asm, I have used C, visbas, pascal etc in the past. I'm really liking what ASM i've learned so far.

I've got a MHS 80C154 40 pin Matra Enhanced 8052 Oki compatable MCU on a bread board with a 24mhz crystal. Powered from a +5v reg and I have 3 Leds getting their ground from p1.0 p1.1 p1.2. My problem is that I cant get it to work, if someone could look over my ASM and tell me if its ok then I know its my hardware, at the moment i'm really not sure. I've waisted hours and hours, and many eproms.

Thank you for you help,

Matt


You do not have the required permissions to view the files attached to this post.


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 23, 2004 10:08 am 
I'm kinda lost....isnt that a pic of an EProm?


Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 29, 2004 1:15 am 
Offline

Joined: Tue Jul 27, 2004 2:49 am
Posts: 57
Location: Midwest, USA
Here is his code. dont you need to have a starting place for your code? like you have to tell it to start at 00002$

INCLUDE 8051.mc
CLR 090h
CLR 091h
00002$: NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP ADD A, ffh JZ
00003$ JMP 00002$ ; turn on 00003$:
CLR A SETB 90h 00004$: NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP ADD A, ffh JZ
00005$ JMP 00004$ ; turn on 00005$:
CLR A CLR 90h JMP 00002$


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 29, 2004 1:18 am 
Offline

Joined: Tue Jul 27, 2004 2:49 am
Posts: 57
Location: Midwest, USA
Since it looks like you are trying to learn here is some assembly that might be helpful for your reference. I wrote it last year for a class. its the simplest assembly I have here. Note that some of the instructions ands stuff will be different because this is for a motorola HC-12 microcontroler.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 29, 2004 12:33 pm 
Offline
Senior Developer

Joined: Tue Jul 27, 2004 2:09 am
Posts: 4383
Location: Cincinnati, Ohio
your asm is fucked. I'll take another look at it later.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 15, 2004 7:05 am 
thanks for looking, I have made null progress still. Can anyone recomend any good books or web sites that may help me?

I have bought a couple of 8051 books but all the programming examples are in C.... which is very useful :roll:


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 15, 2004 11:33 am 
http://www.8052.com

I learned practically everything I know from that website and from reading the pm6 source code.


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 15, 2004 12:30 pm 
Offline
Senior Developer

Joined: Tue Jul 27, 2004 2:09 am
Posts: 4383
Location: Cincinnati, Ohio
ditto. 8052.com rules.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group