Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Patrick Fitzgerald
Published © GPL3+

mcu8051ide Demonstration Code for Assembly and C Programming

mcu8051ide comes with 10 sample demonstration code programs that could run on a real 8051 chip

BeginnerProtip2 hours201

Things used in this project

Software apps and online services

MCU8051IDE Software Design Suite

Story

Read more

Code

demo0.asm

Assembly x86
demo assembly code from mcu8051ide
runs on 8051 in continuous loop
increments R0 then writes the value into a block of 0x7F memory locations
; MCU 8051 IDE - Demonstration code
; Very simple code

; Press F2 and F6 to run the program (start simulator and animate)

	org	0h

main:	inc	R0
	inc	@R0
	cjne	R0, #07Fh, main
	mov	R0, #0d
	sjmp	main

	end

; <-- Bookmark (try Alt+PgUp/Alt+PgDown)
; <-- Breakpoint

; -----------------------------------------
; NOTICE:
; Simulator limitations:
;	* SPI
;	* Access to external code memory
;	* Power down modes
; -----------------------------------------

; IF YOU HAVE FOUND SOME BUG IN THIS IDE , PLEASE LET ME KNOW

Credits

Patrick Fitzgerald
124 projects • 44 followers
Contact

Comments

Please log in or sign up to comment.