Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Killer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vytor Calixto
Killer
Commits
954c0f55
Commit
954c0f55
authored
10 years ago
by
Israel Barreto Sant'Anna
Browse files
Options
Downloads
Patches
Plain Diff
Implementada parte de recepção do handler (incompleto)
Signed-off-by:
Israel B. Sant'Anna
<
ibsa14@inf.ufpr.br
>
parent
711cef3e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cMIPS/tests/handlerUART.s
+19
-5
19 additions, 5 deletions
cMIPS/tests/handlerUART.s
with
19 additions
and
5 deletions
cMIPS/tests/handlerUART.s
+
19
−
5
View file @
954c0f55
...
@@ -8,11 +8,25 @@ RX:
...
@@ -8,11 +8,25 @@ RX:
lui
$a0
,
%
hi
(
HW_uart_addr
)
lui
$a0
,
%
hi
(
HW_uart_addr
)
ori
$a0
,
$a0
,
%
lo
(
HW_uart_addr
)
ori
$a0
,
$a0
,
%
lo
(
HW_uart_addr
)
lw
$a1
,
4
(
$a0
)
#
Read
data
lw
$a1
,
4
(
$a0
)
#
Read
data
nop
#
and
store
it
to
UART
's buffer
sw
$a1
,
4
(
$k0
)
#
and
return
from
interrupt
lui
$a0
,
%
hi
(
rx_queue
)
addiu
$a1
,
$zero
,
1
ori
$a0
,
$a0
,
%
lo
(
rx_queue
)
sw
$a1
,
8
(
$k0
)
#
Signal
new
arrival
sw
$a1
,
0
(
$a0
)
#
Put
data
on
RX_queue
#
TODO
:
Read
data
,
store
it
to
buffer
and
decrement
nrx
(
we
're reading a char)
lui
$a0
,
%
hi
(
rx_tl
)
ori
$a0
,
$a0
,
%
lo
(
rx_tl
)
lw
$a1
,
0
(
$a0
)
#
Read
rx_tl
nop
addiu
$a1
,
$a1
,
1
#
Increment
rx_tl
(
shouldn
't it be (rx_tl+1)%16 ?)
sw
$a1
,
0
(
$a0
)
#
Save
rx_tl
lui
$a0
,
%
hi
(
nrx
)
ori
$a0
,
$a0
,
%
lo
(
nrx
)
lw
$a1
,
0
(
$a0
)
#
Read
nrx
nop
addiu
$a1
,
$a1
,
1
#
Increment
nrx
sw
$a1
,
0
(
$a0
)
#
Save
incremented
nrx
TX
:
TX
:
andi
$a0
,
$k1
,
UART_tx_irq
#
Is
this
transmission
?
andi
$a0
,
$k1
,
UART_tx_irq
#
Is
this
transmission
?
beq
$a0
,
$zero
,
END
#
no
,
end
handler
beq
$a0
,
$zero
,
END
#
no
,
end
handler
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment