element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Code Exchange
  • Technologies
  • More
Code Exchange
Forum Can anyone tell me what code this is?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Code Exchange to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 2 answers
  • Subscribers 50 subscribers
  • Views 4244 views
  • Users 0 members are here
  • Code Exchange
Related

Can anyone tell me what code this is?

clem57
clem57 over 10 years ago

This is a quiz of sorts. I wish to know

  1. what microprocessor uses these instructions
  2. who makes it
  3. what does it do

 

0000 90      GHI 0  
0001 B6      PHI 6
0002 F829    LDI DOIT 
0004 A6      PLO 6
0005 E0      SEX 0  
0006 6400    OUT 4,00  
0009 3F09    BN4 * 
000B 6C      INP 4  
000C 64      OUT 4  
000D 370D    B4 *  
000F F860    LDI #60  
0011 A6      PLO 6  
0012 E0      SEX 0  
0013 6401    OUT 4,01
0015 3F15    BN4 *
0017 E6      SEX 6  
0018 6C      INP 4  
0019 64      OUT 4  
001A 371A    B4 *
001C E0      SEX 0  
001D 6402    OUT 4,02
001F E6      SEX 6
0020 3F20 LOOP: BN4 * 
0022 6C      INP 4  
0023 64      OUT 4  
0024 3724    B4 * 
0026 26      DEC 6  
0027 26      DEC 6
0028 46      LDA 6  
0029 C4 DOIT: NOP  
002A C4      NOP  
002B 26      DEC 6   
002C 56      STR 6 
002D 64      OUT 4  
002E 7A      REQ  
002F CA0020  LBNZ LOOP  
0032 7B      SEQ  
0033 3020    BR LOOP 

  • Sign in to reply
  • Cancel

Top Replies

  • johnbeetem
    johnbeetem over 10 years ago +2 verified
    There's only one microprocessor I know of that has a SEX instruction. It was the first CMOS microprocessor and was produced by the company that pioneered CMOS. The company originally called it COS/MOS…
  • michaelkellett
    michaelkellett over 10 years ago +2 suggested
    Much too easy - just Google the first 5 lines of code. I considered using one a long time ago but we never did - Motorola brought out a CMOS 6805 just in time. MK.
  • gdstew
    gdstew over 10 years ago in reply to johnbeetem +1
    Without looking I do at least know which one the COS/MOS processor is, having never used it I did not recognize the code. The Motorola 6809 processor also has a sex (sign extend) instruction and it has…
Parents
  • johnbeetem
    0 johnbeetem over 10 years ago

    There's only one microprocessor I know of that has a SEX instruction.  It was the first CMOS microprocessor and was produced by the company that pioneered CMOS.  The company originally called it COS/MOS: COmplementary-Symmetry Metal-Oxide Semiconductor.

     

    To avoid spoiling the game for others, I won't name the company or processor.  But I found it quickly at Wikipedia, and the page has your assembly language listing image

     

    I can't believe I still remember that chip.  It's not like I ever used it.  IIRC I looked at the instruction set and found it pretty ugly.  I think its chief advantage was that COS/MOS could be powered from 3V to 15V, so the "SEX machine" was a good fit for industrial applications where you needed really wide noise margins.  COS/MOS was also really low power, drawing next to nothing at low frequencies.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • gdstew
    0 gdstew over 10 years ago in reply to johnbeetem

    Without looking I do at least know which one the COS/MOS processor is, having never used it I did not recognize the code.

     

    The Motorola 6809 processor also has a sex (sign extend) instruction and it has a bra (branch always) instruction too.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • gdstew
    0 gdstew over 10 years ago in reply to johnbeetem

    Without looking I do at least know which one the COS/MOS processor is, having never used it I did not recognize the code.

     

    The Motorola 6809 processor also has a sex (sign extend) instruction and it has a bra (branch always) instruction too.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube