cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyone stcking programming in assembly language? Any advantage?

holinepu
Associate II
Posted on December 03, 2010 at 11:41

       I've developped  the assembler myself due to my own interseting. I use it to design other system which needs to use assembly language in some but not all.

To my suprise, some inrtructions in stm8s are resemble to 8051. I can copy some of the program used by 51 to stm8s. This incurred my curiousity that if we can copy the program from 51 to stm8s to execute. This is only in machine code level. What do you think about this?

       The assembly language that I developped is conceptually universal to all the cpu's, including ARM.  See if you could understand this:

  (  8080  AE 07 00       )                                 X=700

  (  8083  7F             )                                 (X)=0

  (  8084  5C             )                                 X+

  (  8085  A3 07 FF       )                                 X:7FF

  (  8088  23 F9          )                         8083    U<=?

  (  808A  AE 07 FE       )                                 X=7FE

  (  808D  94             )                                 SP=X

  (  808E  CC 80 92       )                                 PC=8092

#assembly-language
6 REPLIES 6
infoinfo967
Associate II
Posted on December 15, 2010 at 21:02

Hi,

I'm programing with asm, but I'm using instructions manual (pm0044). I'm not understand whati is it: is op-code?

 (  8080  AE 07 00       )                                 X=700

  (  8083  7F             )                                 (X)=0

  (  8084  5C             )                                 X+

  (  8085  A3 07 FF       )                                 X:7FF

  (  8088  23 F9          )                         8083    U<=?

  (  808A  AE 07 FE       )                                 X=7FE

  (  808D  94             )                                 SP=X

  (  808E  CC 80 92       )                                 PC=8092

My program example:

            ld a,#2

            ld $0,A

            ld a,#4

            ld $2,a

            mov $3,$0

            ld a,#8

            ld $f,a

regards

holinepu
Associate II
Posted on December 16, 2010 at 12:39

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6hW&d=%2Fa%2F0X0000000btX%2FAuMQohGGLtcuJCM6Pv_el6vLYRHdTQGdFjZC2doVXtk&asPdf=false
beha2r
Associate
Posted on April 13, 2015 at 11:53

intresting

but how did you find op-codes?
Philipp Krause
Senior II
Posted on June 05, 2015 at 13:38

See PM0044 ''Programming Manual'', Section 7 ''STM8 instruction set''.

Philipp

zimmerman_doug
Associate II
Posted on July 21, 2015 at 04:09

Its a lot like the Z-80 code, In the 70's I wrote a complete operating system for my Itaica (sp) Z80 based computer using hand assembled machine code.  Very compact, very efficient, and you know EXACTLY what the code is doing.  Perfect for high reliability systems.  (My opinion)

Doug

jonathanscottjames
Associate
Posted on August 11, 2015 at 08:25

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6k2&d=%2Fa%2F0X0000000buP%2F31.eWGGG6FBC8PL84RCWlvVCJxAouOjMz2hQ7usiVmU&asPdf=false