Assembly language........

Discussion in 'Programmer's Corner' started by RRITESH KAKKAR, Apr 7, 2011.

  1. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi,

    i want to learn assemly language for this i am using Oshon 8085 stimulator i have readied it help file but don't get the answer as how to start basic program in it adding address in it......,etc
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Do you have a PC? Then go for 8086 assembler instead. Or do some micro-controller work in assembler. Much better than working with 8085
     
    RRITESH KAKKAR likes this.
  3. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    I recall mentioning the same thing to the OP ages ago.
     
    RRITESH KAKKAR likes this.
  4. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    I suggested him Atmel's 8051/52/53,but I think his school/collage may want him to go with 8085.

    I dont think so,I think you have read the help topic on the help menu of the application.Its not much help on how to program 8085 rather it show how to use the application,do this click on the start menu then find "8085 Simulator IDE" then you will find "Getting Started" this html file gives much help on how to program 8085 on Oshon Simulator IDE.

    Now here I am adding another program for you just unzip it and load the *.obj or *.hex file to simulator to simulate.Its a very basic program it adds two integer and store the result in accmulator register "A"

    Good Luck;)
     
    • add.zip
      File size:
      814 bytes
      Views:
      20
    RRITESH KAKKAR likes this.
  5. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Is there any needs for telling where to start saving data, as we do so in 8085 training kits. & how to calculate machine cycle & time cycle??
     
    Last edited: Apr 8, 2011
  6. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Which data you are talking about? I have no idea....

    I dont remember much its really very old processor you may try google.

    Good luck
     
    RRITESH KAKKAR likes this.
  7. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    I think perhaps the OP is talking about using the ORG statement then writing the Assembler code. And to RRITESH KAKKAR. Can you please tell us why you are doing this. And what you want to get out it. It does not matter if your English is not the best. Some words are better than none. You want us to share but you refuse to tell us anything. How can we help if you give us very few or none details. We (the forum) are not your teacher so we will not grade you in any way. Thank you for understanding
     
    RRITESH KAKKAR likes this.
  8. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89

    As in training kit we write starting add. to save data as in our training kit..

    press 1 then select assembler mode then give memory add. to save the whole program above 2000H.

    & if i want to how many machine cycle are there how to know as in my course book the program is given below it the m/c cyle 7 time cyle are given.!!
     
  9. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Not sure as I dont know much about your training kit,may be its using some kind of boot loader.

    Its hard to say much on your course book.

    Good luck
     
    RRITESH KAKKAR likes this.
  10. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Now i am able to run program in Oshon stimulator, but i want to know for making project how to load program in 8085??
     
  11. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    A 8085 is not some micro-controller unit. It has no memory at all of any kind. In the days then I was working with such systems. We used external ROM and RAM circuits. In the development phase we often used EPROM circuits. And I guess EPROM circuits will be your choise. In order to program an EPROM. You need a EPROM programmer of some sort. And a device to erase the EPROMs.
     
    RRITESH KAKKAR likes this.
  12. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
  13. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    I thought you are having a 8085 training kit?????
    You have to tell us what hardware you are having before we could help you futher...
     
    RRITESH KAKKAR likes this.
  14. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I don't have any thing, let me know what to have for this??
     
  15. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    You could make your own development board but for that you will need to know many thing and as per your all post I think it will a bit hard for you to do that at very first time (then also you could do it) so it will be great if you can get a "8085 training kit".

    Good luck
     
    RRITESH KAKKAR likes this.
  16. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89

    What the use of Training kit, as it is used only for writing small program for practicals in lab, can we use it for making projects as shown in above video??
     
  17. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi,

    I found this program in my course book but i am facing problem how to write this in 8085 Oshon, here it is...

    8 BIT ADD.

    2000H DATA
    2001H DATA
    2002H RESULT

    2003H LXI H,2000
    2006H MOV A,M
    2007H INX H
    2008H ADD M
    2009H INX H
    200AH MOV M,A
    200BH HLT
     
  18. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    That depends on the Training kit,their are many (I am not sure for these days,as its very old).


    I think you should able to write this program their is nothing hard about it, it just add two 8 bit data.Anyway here you go...

    Code ( (Unknown Language)):
    1.  
    2. ;jump at the main program
    3.  JMP 2003H
    4.  
    5. .ORG 2000H
    6. DATA_1 .DB 03H ;2000H location to store data initialized to 3
    7. DATA_2 .DB 06H ;2001H location to store data initialized to 6
    8. RESULT .DB 00H ;2003H location to store data initialized to 0
    9. ;The jump instruction takes the execution here.
    10. .ORG 2003H
    11.  
    12. ;Here we load the memory address "2000H" i.e. DATA1 to reg pair HL
    13.  LXI H,2000H
    14. ;Now we move the value "03" pointed by the address in HL pair
    15. ;i.e. data at 2000H in accumulator register
    16.  MOV A,M
    17. ;Increment by 1 the address in HL pair i.e 2000H + 1 = 2001H
    18.  INX H
    19. ;Add the data pointed by the address in HL pair with the data in accumulator register
    20.  ADD M
    21. ;Increment by 1 the address in HL pair i.e 2001H + 1 = 2002H
    22.  INX H
    23. ;Move the data from the accumulator register to the address pointed by the HL pair i.e at 2002H
    24.  MOV M,A
    25. ;Halt the program
    26.  HLT
    27.  
    Good Luck
     
    RRITESH KAKKAR likes this.
  19. GetDeviceInfo

    Senior Member

    Jun 7, 2009
    1,571
    230
    Go back, way back, when the 8085 was actually useful.

    http://www.classiccmp.org/dunfield/kyocera/service.pdf

    This document describes the device as used in probably it's most successfull application. Read over the Theory of operation to see how the device must be supported by external integration for it to become of any real use.

    Is it your intent to work with hardware, or are you just simulating?
     
  20. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    Now THAT IS a blast from the past!

    What FOND memories I have of the trs80
     
    RRITESH KAKKAR likes this.
Loading...