外围体育投注

Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts

/r/asm - where every byte counts

r/asm

1
1
0 comments
24
promotedPosted by28 days ago
24
1 comment
4
4
0 comments
17
Posted by1 day ago

外围体育投注I took help from Stackoverflow, Reddit, and still getting confused on certain things.

I am in relationship with computer for a long time now, but still I have having trouble to understand a few things.

The 3 lines are giving me all the problems.

PUSH ebp
MOV ebp, esp
MOV DWORD PTR [ebp - 4], 10

You see, I am firstly having trouble about how memory is organized in a RAM. How much each cell costs? 1 bit? or 1 byte? or 4 bytes? Also I am confused about What's a memory address and a memory space.

外围体育投注Let's start from the beginning and say each addresses in a RAM is 1 byte.

So let's draw a RAM.

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1
外围体育投注0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6

17
8 comments
19
Posted by2 days ago
push {ip, lr}
pop {ip, lr}
19
8 comments
0
Posted by1 day ago
0
1 comment
3
Posted by2 days ago
push {ip, lr}

pop {ip, lr}
3
5 comments
9
Posted by2 days ago
.global main

main:
    ldr r0, =message_format
    b	printf

message_format:
	.asciz "arrayyyymorethannnnn32bitssssss"


Also what does = (before message_format) do? What's that for? What if I remove it?

I think =message_format will be replaced with its address memory, but since an address memory is 32 bits, how is it possible that it fits inside ldr instruction if the istruction itself is 32 bits? I mean, I thought that I could transfer 8 bit at a time...

9
24 comments

About Community

*Throwing in keywords for search:* assembly, asm, x86, arm, powerpc, thumb, sparc, mips, risc, cisc, 8086, 186, 286, i386, i486, p5, p6, netburst, core, nehalem, sandy bridge, haswell, broadwell, larrabee, bonnell, moore, noyce, fairchild, motorola, amd, k5, k6, k7, k8, k10, turion, fusion, bobcat, bulldozer, cortex, intel, marvell, xmos, masm, opcode, uop, cache, lookup, hyper threading, multi threading, ooo, out-of-order, out of order, branch, prediction, predication, scalar
11.8k

Members

152

Online


Created May 14, 2008

Related Communities

r/RISCV

6,643 members

r/GraphicsProgramming

外围体育投注19,359 members

r/ReverseEngineering

99,539 members

r/AskComputerScience

外围体育投注48,477 members