小编qik*_*qik的帖子

MikeOS引导加载程序中的堆栈段

我不明白这段代码:

mov ax, 07C0h   ; Set up 4K of stack space above buffer
add ax, 544     ; 8k buffer = 512 paragraphs + 32 paragraphs (loader)
cli             ; Disable interrupts while changing stack
mov ss, ax
mov sp, 4096
sti             ; Restore interrupts
Run Code Online (Sandbox Code Playgroud)
  • mov ax,07C0h - 这里BIOS加载我们的代码.但什么是'4K'?千字节?我没弄明白:)
  • 添加斧头,544 - 为什么再次'8K'?为什么我们加544?为什么不是512?
  • mov sp,4096 - 这里我们设置堆栈指针.

在设置堆栈指针之前,我们要做什么操作呢?

assembly bootloader

9
推荐指数
1
解决办法
2081
查看次数

在mongodb的俄文全文搜索

我正在尝试在mongodb中使用全文搜索:

> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.ensureIndex({"text" : "text"}, {"default_language" : "russian"})
Run Code Online (Sandbox Code Playgroud)

句子只在字母案件中有所不同.

> db.collection.runCommand("text" , {search : "??????"})
{
        "queryDebugString" : "????||||||",
        "language" : "russian",
        "results" : [
                {
                        "score" : 0.6666666666666666,
                        "obj" : {
                                "_id" : ObjectId("516acfe2dbfd90a837e09131"),
                                "text" : "?????? ?????? ??????"
                        }
                },
                {
                        "score" : 0.6666666666666666,
                        "obj" : {
                                "_id" : ObjectId("516acfe8dbfd90a837e09132"),
                                "text" : "?????? ?????? ??????"
                        }
                }
        ],
        "stats" : …
Run Code Online (Sandbox Code Playgroud)

full-text-search mongodb

4
推荐指数
1
解决办法
1754
查看次数

标签 统计

assembly ×1

bootloader ×1

full-text-search ×1

mongodb ×1