Giter Club home page Giter Club logo

labmic's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

labmic's People

Contributors

leoiacovini avatar rafaelcorreiapoli avatar rafaeleal avatar

Watchers

 avatar  avatar

Forkers

biancaalt

labmic's Issues

5.5.4

		LDR		r1, =0b00101101100000000000000000000000	;X
		MOV		r4, #0						; STATE
		MOV		r3, #0 						;i
loop
		CMP		r3, #10
		BGE		done
		MOV		r0, r1
		LSL		r0, r0, r3
		LSR		r0, r0, #31  ;r0 agora tem o input bit a bit
		
		CMP		r4, #0
		BEQ		state0
		CMP		r4, #1
		BEQ		state1
		CMP		r4, #2
		BEQ		state2
		CMP		r4, #3
		BEQ		state3
		CMP		r4, #4
		BEQ		state4
		
state0
		CMP		r0, #0
		MOVEQ	r4, #0			; se input for 0
		MOVNE	r4, #1				; se input for 1
		BAL		next
state1
		CMP		r0, #0
		MOVEQ	r4, #2			; se input for 0
		MOVNE	r4, #0				; se input for 1
		BAL		next
state2
		CMP		r0, #0
		MOVEQ	r4, #0			; se input for 0
		MOVNE	r4, #3				; se input for 1
		BAL		next
state3
		CMP		r0, #0
		MOVEQ	r4, #0			; se input for 0
		MOVNE	r4, #4				; se input for 1
		BAL		next
state4
		CMP		r0, #0
		MOVEQ	r4, #2			; se input for 0
		MOVNE	r4, #4				; se input for 1
		BAL		next
		
next
		ADD		r3, r3, #1
		B		loop
done
		
		

Loop

.text
.globl main

main:
      @array A
      LDR r3, =0x101  @ o valor que vai ser colocado nas posições do array
      LDR r1, =0x5000 @ para acessar as posições do array
      STR r3, [r1], #4  @ arrayA[0] = 0x101     0x5000
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[1] = 0x102     0x5004
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[2] = 0x103
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[3] = 0x104
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[4] = 0x105
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[5] = 0x106
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[6] = 0x107
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[7] = 0x108
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[8] = 0x109
      ADD r3, r3, #0x1
      STR r3, [r1], #4  @ arrayA[9] = 0x10A

      @array B
      LDR r3, =0x301  @ o valor que vai ser colocado nas posições do array
      LDR r2, =0x4000 @ para acessar as posições do array
      STR r3, [r2], #4  @ arrayB[0] = 0x301     0x4000
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[1] = 0x302     0x4004
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[2] = 0x303
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[3] = 0x304
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[4] = 0x305
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[5] = 0x306
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[6] = 0x307
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[7] = 0x308
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[8] = 0x309
      ADD r3, r3, #0x1
      STR r3, [r2], #4  @ arrayB[9] = 0x30A

      @inicializacao
      LDR r1, =0x5000 @ para acessar o arrayA (que começa na posicao 0x5000)
      LDR r2, =0x4000 @ para acessar o arrayB (que começa na posicao 0x4000)
      LDR r3, =0x0     @ i = 0
      LDR r4, =0x401  @ c = constante

      @ preciso de a[i] = b[i] + c

loop: LDR r5, [r2], #4   @ r5 = b[i]  carrega em r5 o que tem em [r2]  e   r2 = r2 + #4
      ADD r5, r5, r4     @ r5 = b[i] + c
      STR r5 [r1], #4   @ a[i] = b[i] + c   e   r1 = r1 + #4

      ADD r3, r3, #0x1  @ i ++
      CMP r3, #0xA      @ i < 10
      BMI loop           @ volta pro loop: se i < 10
      SWI #0x123456

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.